diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-30 13:33:13 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-30 13:33:13 +0000 |
commit | d80093fed6c084e38a4c3808e62649bd723adc5b (patch) | |
tree | c44e0ba8d87662d78e8e0ad1b9b90a174aee02fb /src/outputBuffer.c | |
parent | c4396a6be687907583972cb64c42a2923a5bf5c9 (diff) | |
download | mpd-d80093fed6c084e38a4c3808e62649bd723adc5b.tar.gz mpd-d80093fed6c084e38a4c3808e62649bd723adc5b.tar.xz mpd-d80093fed6c084e38a4c3808e62649bd723adc5b.zip |
fixed seek, its now blocking again
git-svn-id: https://svn.musicpd.org/mpd/trunk@1237 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/outputBuffer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c index fb6bfe899..41932faa5 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -28,8 +28,8 @@ static mpd_sint16 currentChunk = -1; void clearOutputBuffer(OutputBuffer * cb) { currentChunk = -1; - /*cb->end = cb->begin; - cb->wrap = 0;*/ + cb->end = cb->begin; + cb->wrap = 0; } void flushOutputBuffer(OutputBuffer * cb) { @@ -80,7 +80,10 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream, if(seekable) { return OUTPUT_BUFFER_DC_SEEK; } - else dc->seek = 0; + else { + dc->seekError = 1; + dc->seek = 0; + } } if(!inStream || bufferInputStream(inStream) <= 0) |