aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-20 00:08:22 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-20 00:08:22 +0000
commit70d439736672922f4897f7b5b5e1a21dfae83040 (patch)
treeb267f69279ed472ee63b49b0fe51141ae3936a81 /src/decode.c
parenta81573ef059ac9f006ea438574b1b7ff751ba55d (diff)
downloadmpd-70d439736672922f4897f7b5b5e1a21dfae83040.tar.gz
mpd-70d439736672922f4897f7b5b5e1a21dfae83040.tar.xz
mpd-70d439736672922f4897f7b5b5e1a21dfae83040.zip
some fixes for non-blocking seek :-)
git-svn-id: https://svn.musicpd.org/mpd/trunk@1100 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/decode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/decode.c b/src/decode.c
index af5ca2c21..e3f13fada 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -410,7 +410,10 @@ void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) {
processDecodeInput();
handleDecodeStart();
if(!dc->seek && seeking) {
- if(dc->seekChunk >= 0) cb->begin = dc->seekChunk;
+ if(dc->seekChunk >= 0) {
+ cb->begin = dc->seekChunk;
+ cb->wrap = 0;
+ }
seeking = 0;
}
if(dc->state==DECODE_STATE_STOP &&