Ticket #6612: LiveTV_DTV_ringbuffer_check_debug.diff
File LiveTV_DTV_ringbuffer_check_debug.diff, 2.6 KB (added by , 16 years ago) |
---|
-
mythtv/libs/libmythtv/dvbrecorder.cpp
bool DVBRecorder::PauseAndWait(int timeout) 486 486 487 487 bool DVBRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) 488 488 { 489 if (!ringBuffer) 490 { 491 VERBOSE(VB_IMPORTANT, LOC + "ProcessVideoTSPacket() no ringBuffer. Start buffering."); 492 _buffer_packets = true; 493 return true; 494 } 489 495 uint streamType = _stream_id[tspacket.PID()]; 490 496 491 497 // Check for keyframes and count frames … … bool DVBRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) 505 511 506 512 bool DVBRecorder::ProcessAudioTSPacket(const TSPacket &tspacket) 507 513 { 514 if (!ringBuffer) 515 { 516 VERBOSE(VB_IMPORTANT, LOC + "ProcessAudioTSPacket() no ringBuffer. Start buffering"); 517 _buffer_packets = true; 518 return true; 519 } 508 520 _buffer_packets = !FindAudioKeyframes(&tspacket); 509 521 return ProcessAVTSPacket(tspacket); 510 522 } … … bool DVBRecorder::ProcessAudioTSPacket(const TSPacket &tspacket) 512 524 /// Common code for processing either audio or video packets 513 525 bool DVBRecorder::ProcessAVTSPacket(const TSPacket &tspacket) 514 526 { 527 if (!ringBuffer) 528 { 529 VERBOSE(VB_IMPORTANT, LOC + "ProcessAVTSPacket() no ringBuffer"); 530 return true; 531 } 515 532 const uint pid = tspacket.PID(); 516 533 517 534 // 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 { 1307 VERBOSE(VB_IMPORTANT, LOC + "ProcessVideoTSPacket() no ringBuffer. Start buffering."); 1308 _buffer_packets = true; 1309 return true; 1310 } 1311 1305 1312 _buffer_packets = !FindH264Keyframes(&tspacket); 1306 1313 if (!_seen_sps) 1307 1314 return true; … … bool MpegRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) 1311 1318 1312 1319 bool MpegRecorder::ProcessAudioTSPacket(const TSPacket &tspacket) 1313 1320 { 1321 if (!ringBuffer) 1322 { 1323 VERBOSE(VB_IMPORTANT, LOC + "ProcessAudioTSPacket() no ringBuffer. Start buffering"); 1324 _buffer_packets = true; 1325 return true; 1326 } 1327 1314 1328 _buffer_packets = !FindAudioKeyframes(&tspacket); 1315 1329 return ProcessAVTSPacket(tspacket); 1316 1330 }