Ticket #6612: LiveTV_DTV_ringbuffer_check_debug2.diff
File LiveTV_DTV_ringbuffer_check_debug2.diff, 2.2 KB (added by , 15 years ago) |
---|
-
mythtv/libs/libmythtv/dvbrecorder.cpp
bool DVBRecorder::PauseAndWait(int timeout) 484 484 485 485 bool DVBRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) 486 486 { 487 if (!ringBuffer) 488 return true; 489 487 490 uint streamType = _stream_id[tspacket.PID()]; 488 491 489 492 // Check for keyframes and count frames … … bool DVBRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) 503 506 504 507 bool DVBRecorder::ProcessAudioTSPacket(const TSPacket &tspacket) 505 508 { 509 if (!ringBuffer) 510 { 511 VERBOSE(VB_RECORD, LOC + "ProcessAudioTSPacket() no ringBuffer."); 512 return true; 513 } 506 514 _buffer_packets = !FindAudioKeyframes(&tspacket); 507 515 return ProcessAVTSPacket(tspacket); 508 516 } … … bool DVBRecorder::ProcessAudioTSPacket(const TSPacket &tspacket) 510 518 /// Common code for processing either audio or video packets 511 519 bool DVBRecorder::ProcessAVTSPacket(const TSPacket &tspacket) 512 520 { 521 if (!ringBuffer) 522 { 523 VERBOSE(VB_RECORD, LOC + "ProcessAVTSPacket() no ringBuffer"); 524 return true; 525 } 513 526 const uint pid = tspacket.PID(); 514 527 515 528 // Check continuity counter -
mythtv/libs/libmythtv/mpegrecorder.cpp
bool MpegRecorder::ProcessTSPacket(const TSPacket &tspacket_real) 1302 1302 1303 1303 bool MpegRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) 1304 1304 { 1305 if (!ringBuffer) 1306 return true; 1307 1305 1308 _buffer_packets = !FindH264Keyframes(&tspacket); 1306 1309 if (!_seen_sps) 1307 1310 return true; … … bool MpegRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) 1311 1314 1312 1315 bool MpegRecorder::ProcessAudioTSPacket(const TSPacket &tspacket) 1313 1316 { 1317 if (!ringBuffer) 1318 { 1319 VERBOSE(VB_RECORD, LOC + "ProcessAudioTSPacket() no ringBuffer."); 1320 return true; 1321 } 1322 1314 1323 _buffer_packets = !FindAudioKeyframes(&tspacket); 1315 1324 return ProcessAVTSPacket(tspacket); 1316 1325 }