Permalink
Browse files

dtvrecorder: Don't try to buffer frames for audio-only streams.

  • Loading branch information...
jpoet committed Mar 7, 2013
1 parent dbf2878 commit 0d9312df1dd3ed2a2da40edce1bbaae5b90c9944
Showing with 1 addition and 2 deletions.
  1. +1 −2 mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
@@ -717,6 +717,7 @@ bool DTVRecorder::FindAudioKeyframes(const TSPacket*)
if (!_frames_seen_count)
_audio_timer.start();
_buffer_packets = false;
_frames_seen_count++;
if (1 == (_frames_seen_count & 0x7))
@@ -1335,8 +1336,6 @@ bool DTVRecorder::ProcessTSPacket(const TSPacket &tspacket)
// if audio/video key-frames have been found
if (_wait_for_keyframe_option && _first_keyframe < 0)
return true;
_buffer_packets = true;
}
BufferedWrite(tspacket);

0 comments on commit 0d9312d

Please sign in to comment.