Ticket #3963: 3963-v1.patch
File 3963-v1.patch, 2.5 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/dvbrecorder.cpp
423 423 _recording = false; 424 424 } 425 425 426 void DVBRecorder::Reset (void)426 void DVBRecorder::ResetForNewFile(void) 427 427 { 428 DTVRecorder::Reset ();428 DTVRecorder::ResetForNewFile(); 429 429 430 430 bzero(_stream_id, sizeof(_stream_id)); 431 431 bzero(_pid_status, sizeof(_pid_status)); 432 432 memset(_continuity_counter, 0xff, sizeof(_continuity_counter)); 433 434 if (curRecording)435 {436 curRecording->ClearPositionMap(MARK_GOP_BYFRAME);437 }438 433 } 439 434 440 435 void DVBRecorder::StopRecording(void) -
libs/libmythtv/dvbrecorder.h
57 57 const QString &vbidev); 58 58 59 59 void StartRecording(void); 60 void Reset (void);60 void ResetForNewFile(void); 61 61 void StopRecording(void); 62 62 63 63 bool Open(void); -
libs/libmythtv/dtvrecorder.cpp
132 132 return ret; 133 133 } 134 134 135 // documented in recorderbase.h 136 void DTVRecorder::Reset(void) 135 void DTVRecorder::ResetForNewFile(void) 137 136 { 137 VERBOSE(VB_RECORD, LOC + "ResetForNewFile(void)"); 138 138 QMutexLocker locker(&positionMapLock); 139 139 140 _start_code = 0xffffffff;140 //_start_code 141 141 _first_keyframe =-1; 142 142 _last_keyframe_seen = 0; 143 143 _last_gop_seen = 0; … … 155 155 positionMapDelta.clear(); 156 156 } 157 157 158 // documented in recorderbase.h 159 void DTVRecorder::Reset(void) 160 { 161 VERBOSE(VB_RECORD, LOC + "Reset(void)"); 162 ResetForNewFile(); 163 164 _start_code = 0xffffffff; 165 166 if (curRecording) 167 curRecording->ClearPositionMap(MARK_GOP_BYFRAME); 168 } 169 158 170 void DTVRecorder::BufferedWrite(const TSPacket &tspacket) 159 171 { 160 172 // delay until first GOP to avoid decoder crash on res change … … 348 360 nextRingBufferLock.unlock(); 349 361 } 350 362 351 void DTVRecorder::ResetForNewFile(void)352 {353 VERBOSE(VB_RECORD, LOC + "ResetForNewFile(void)");354 Reset();355 }356 357 363 /** \fn DTVRecorder::HandleKeyframe(void) 358 364 * \brief This save the current frame to the position maps 359 365 * and handles ringbuffer switching.