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/ogg_decode.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ogg_decode.c') diff --git a/src/ogg_decode.c b/src/ogg_decode.c index 60f310fba..22ae07727 100644 --- a/src/ogg_decode.c +++ b/src/ogg_decode.c @@ -219,8 +219,8 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) if(0 == ov_time_seek_page(&vf,dc->seekWhere)) { clearOutputBuffer(cb); chunkpos = 0; - dc->seekChunk = cb->end; } + else dc->seekError = 1; dc->seek = 0; } ret = ov_read(&vf, chunk+chunkpos, @@ -251,7 +251,7 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) } if(!dc->stop && chunkpos > 0) { - sendDataToOutputBuffer(cb, NULL, dc, 0, chunk, chunkpos, + sendDataToOutputBuffer(cb, NULL, dc, inStream->seekable, chunk, chunkpos, ov_time_tell(&vf), bitRate); } @@ -259,7 +259,10 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) flushOutputBuffer(cb); - 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