Ticket #11442: dtvrecorder-dont-buffer-audio-only.patch

File dtvrecorder-dont-buffer-audio-only.patch, 766 bytes (added by jpoet, 7 years ago)
  • mythtv/libs/libmythtv/dtvrecorder.cpp

    diff --git a/mythtv/libs/libmythtv/dtvrecorder.cpp b/mythtv/libs/libmythtv/dtvrecorder.cpp
    index b49fe6d..c87ed36 100644
    a b bool DTVRecorder::FindAudioKeyframes(const TSPacket*) 
    663663        if (!_frames_seen_count)
    664664            _audio_timer.start();
    665665
     666        _buffer_packets = false;
    666667        _frames_seen_count++;
    667668
    668669        if (1 == (_frames_seen_count & 0x7))
    bool DTVRecorder::ProcessTSPacket(const TSPacket &tspacket) 
    13011302        // if audio/video key-frames have been found
    13021303        if (_wait_for_keyframe_option && _first_keyframe < 0)
    13031304            return true;
    1304 
    1305         _buffer_packets = true;
    13061305    }
    13071306
    13081307    BufferedWrite(tspacket);