diff --git a/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp b/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
index f6842cf..5b76852 100644
a
|
b
|
bool DTVRecorder::ProcessVideoTSPacket(const TSPacket &tspacket) |
1358 | 1358 | |
1359 | 1359 | if (tspacket.HasPayload() && tspacket.PayloadStart()) |
1360 | 1360 | { |
| 1361 | if (_buffer_packets && _first_keyframe >= 0 && !_payload_buffer.empty()) |
| 1362 | { |
| 1363 | // Flush the buffer |
| 1364 | if (ringBuffer) |
| 1365 | ringBuffer->Write(&_payload_buffer[0], _payload_buffer.size()); |
| 1366 | _payload_buffer.clear(); |
| 1367 | } |
| 1368 | |
1361 | 1369 | // buffer packets until we know if this is a keyframe |
1362 | 1370 | _buffer_packets = true; |
1363 | 1371 | } |
… |
… |
bool DTVRecorder::ProcessAudioTSPacket(const TSPacket &tspacket) |
1381 | 1389 | |
1382 | 1390 | if (tspacket.HasPayload() && tspacket.PayloadStart()) |
1383 | 1391 | { |
| 1392 | if (_buffer_packets && _first_keyframe >= 0 && !_payload_buffer.empty()) |
| 1393 | { |
| 1394 | // Flush the buffer |
| 1395 | if (ringBuffer) |
| 1396 | ringBuffer->Write(&_payload_buffer[0], _payload_buffer.size()); |
| 1397 | _payload_buffer.clear(); |
| 1398 | } |
| 1399 | |
1384 | 1400 | // buffer packets until we know if this is a keyframe |
1385 | 1401 | _buffer_packets = true; |
1386 | 1402 | } |