From d80093fed6c084e38a4c3808e62649bd723adc5b Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sun, 30 May 2004 13:33:13 +0000 Subject: fixed seek, its now blocking again git-svn-id: https://svn.musicpd.org/mpd/trunk@1237 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/mp4_decode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mp4_decode.c') diff --git a/src/mp4_decode.c b/src/mp4_decode.c index e83200451..219053538 100644 --- a/src/mp4_decode.c +++ b/src/mp4_decode.c @@ -27,6 +27,7 @@ #include "pcm_utils.h" #include "inputStream.h" #include "outputBuffer.h" +#include "decode.h" #include "mp4ff/mp4ff.h" @@ -220,7 +221,6 @@ int mp4_decode(OutputBuffer * cb, DecoderControl * dc) { if(dc->seek && seekPositionFound) { seekPositionFound = 0; clearOutputBuffer(cb); - dc->seekChunk = cb->end; dc->seek = 0; } @@ -298,7 +298,10 @@ int mp4_decode(OutputBuffer * cb, DecoderControl * dc) { if(dc->state != DECODE_STATE_DECODE) return -1; - if(dc->seek) dc->seek = 0; + /*if(dc->seek) { + dc->seekError = 1; + dc->seek = 0; + }*/ if(dc->stop) { dc->state = DECODE_STATE_STOP; -- cgit v1.2.3