Ticket #4040: mythtv_dtvrec_payload_buffer_flush.diff

File mythtv_dtvrec_payload_buffer_flush.diff, 748 bytes (added by Shane Shrybman <gnome42@…>, 14 years ago)
  • libs/libmythtv/dtvrecorder.cpp

     
    106106void DTVRecorder::FinishRecording(void)
    107107{
    108108    if (ringBuffer)
     109    {
     110        if (_payload_buffer.size())
     111        {
     112            ringBuffer->Write(&_payload_buffer[0], _payload_buffer.size());
     113            _payload_buffer.clear();
     114        }
    109115        ringBuffer->WriterFlush();
     116    }
    110117
    111118    if (curRecording)
    112119    {
     
    153160    _h264_kf_seq.Reset();
    154161    positionMap.clear();
    155162    positionMapDelta.clear();
     163    _payload_buffer.clear();
    156164}
    157165
    158166void DTVRecorder::BufferedWrite(const TSPacket &tspacket)