Permalink
Browse files

MpegRecorder::StartEncoding: Fix HD-PVR startup with recent kernels

(at least) with the 3.10 kernel, the V4L2_ENC_CMD_START does not reliably start the data flow.  A read() seems to consistently work, though.
  • Loading branch information...
jpoet committed Aug 11, 2013
1 parent 8cddf62 commit 5aa92a134e1eb5c80727a383c2bdd3b2a2383b14
Showing with 6 additions and 0 deletions.
  1. +6 −0 mythtv/libs/libmythtv/recorders/mpegrecorder.cpp
@@ -1295,6 +1295,12 @@ bool MpegRecorder::StartEncoding(void)
m_h264_parser.Reset();
_wait_for_keyframe_option = true;
_seen_sps = false;
// (at least) with the 3.10 kernel, the V4L2_ENC_CMD_START
// does not reliably start the data flow. A read() seems
// to consistently work, though.
uint8_t dummy;
read(readfd, &dummy, 0);
}
LOG(VB_RECORD, LOG_INFO, LOC + "Encoding started");

0 comments on commit 5aa92a1

Please sign in to comment.