Ticket #743: Changeset8551-revert.diff
File Changeset8551-revert.diff, 1.9 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/mpeg/mpegstreamdata.cpp
old new 29 29 AddListeningPID(MPEG_PAT_PID); 30 30 31 31 _pid_video_single_program = _pid_pmt_single_program = 0xffffffff; 32 _unexpected_pat_timeout = QDateTime::currentDateTime().addYears(1);33 32 } 34 33 35 34 MPEGStreamData::~MPEGStreamData() … … 215 214 VERBOSE(VB_RECORD, QString("desired_program(%1) pid(0x%2)"). 216 215 arg(_desired_program).arg(_pid_pmt_single_program, 0, 16)); 217 216 218 QDateTime now = QDateTime::currentDateTime(); 219 if (!_pid_pmt_single_program && (_unexpected_pat_timeout < now)) 217 if (!_pid_pmt_single_program) 220 218 { 221 219 _pid_pmt_single_program = pat.FindAnyPID(); 222 220 if (!_pid_pmt_single_program) … … 230 228 "\n\t\t\tCan Not create single program PAT.") 231 229 .arg(_desired_program)); 232 230 SetPATSingleProgram(NULL); 233 _unexpected_pat_timeout = now.addYears(1);234 return false;235 }236 else if (!_pid_pmt_single_program)237 {238 if (_unexpected_pat_timeout > now.addMonths(6))239 _unexpected_pat_timeout = now.addSecs(2);240 231 return false; 241 232 } 242 233 -
libs/libmythtv/mpeg/mpegstreamdata.h
old new 177 177 uint _pmt_single_program_num_audio; 178 178 ProgramAssociationTable *_pat_single_program; 179 179 ProgramMapTable *_pmt_single_program; 180 QDateTime _unexpected_pat_timeout;181 180 }; 182 181 183 182 #include "mpegtables.h"