From b1ce88923e3e3a5a7c4a78666daa09baf02fe5a5 Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 19 Jan 2012 00:16:15 +0100 Subject: Small miscellaneous cleanups. --- softhddev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'softhddev.c') diff --git a/softhddev.c b/softhddev.c index 33e5fae..267b603 100644 --- a/softhddev.c +++ b/softhddev.c @@ -652,6 +652,9 @@ static int ValidateMpeg(const uint8_t * data, int size) ** supports complete packets. ** We buffer here until we receive an complete PES Packet, which ** is no problem, the audio is always far behind us. +** cTsToPes::GetPes splits the packets. +** +** @todo FIXME: combine the 5 ifs at start of the function */ int PlayVideo(const uint8_t * data, int size) { @@ -695,7 +698,7 @@ int PlayVideo(const uint8_t * data, int size) Error(_("[softhddev] invalid video packet %d bytes\n"), size); return size; } - // FIXME: hack to test results + // buffer full: needed for replay if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX - 1) { return 0; } -- cgit v1.2.3