diff options
author | Johns <johns98@gmx.net> | 2013-01-11 18:54:45 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-01-11 18:54:45 +0100 |
commit | 308742a927ec08a19a6115552ec09a3e23872472 (patch) | |
tree | 6b603b8fc118d640963527cfb9ea741603b2d628 /softhddev.c | |
parent | 1a730ef90b7fa999b5ea8f671560e2b4d56c777d (diff) | |
download | vdr-plugin-softhddevice-308742a927ec08a19a6115552ec09a3e23872472.tar.gz vdr-plugin-softhddevice-308742a927ec08a19a6115552ec09a3e23872472.tar.bz2 |
React faster only with mpeg.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/softhddev.c b/softhddev.c index 3f32538..90423d0 100644 --- a/softhddev.c +++ b/softhddev.c @@ -2121,15 +2121,15 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size) if (stream->CodecID == CODEC_ID_MPEG2VIDEO) { // SKIP PES header VideoMpegEnqueue(stream, pts, data + 9 + n, size - 9 - n); + if (size < 65526) { + // mpeg codec supports incomplete packets + // waiting for a full complete packages, increases needed delays + VideoNextPacket(stream, stream->CodecID); + } } else { // SKIP PES header VideoEnqueue(stream, pts, data + 9 + n, size - 9 - n); } - if (size < 65526) { - // mpeg codec supports incomplete packets - // waiting for a full complete packages, increases needed delays - VideoNextPacket(stream, stream->CodecID); - } #else // SKIP PES header VideoEnqueue(stream, pts, data + 9 + n, size - 9 - n); @@ -2282,6 +2282,7 @@ int SetPlayMode(int play_mode) } } switch (play_mode) { + case 0: // nothing case 1: // audio/video from player break; case 2: // audio only |