diff options
author | Johns <johns98@gmx.net> | 2012-01-19 00:16:15 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-01-19 00:16:15 +0100 |
commit | b1ce88923e3e3a5a7c4a78666daa09baf02fe5a5 (patch) | |
tree | 8b7a26f28ee2aa2026ac6c71a3d08d981e1664c7 /softhddev.c | |
parent | c6e66e0787f62fdf74dde43dcc88818f80b7334e (diff) | |
download | vdr-plugin-softhddevice-b1ce88923e3e3a5a7c4a78666daa09baf02fe5a5.tar.gz vdr-plugin-softhddevice-b1ce88923e3e3a5a7c4a78666daa09baf02fe5a5.tar.bz2 |
Small miscellaneous cleanups.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |