From 308742a927ec08a19a6115552ec09a3e23872472 Mon Sep 17 00:00:00 2001 From: Johns Date: Fri, 11 Jan 2013 18:54:45 +0100 Subject: React faster only with mpeg. --- softhddev.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'softhddev.c') 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 -- cgit v1.2.3