aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-20 21:08:16 +0100
committerMax Kellermann <max@duempel.org>2008-11-20 21:08:16 +0100
commit61ba50a9bc8afd4ed71180ab99e218934db8a586 (patch)
treeb0138ee0a761e044b9455d6af088a861c2803357
parent927bf45f8436e14b71936c0a22f10ce9ecc8dea6 (diff)
downloadmpd-61ba50a9bc8afd4ed71180ab99e218934db8a586.tar.gz
mpd-61ba50a9bc8afd4ed71180ab99e218934db8a586.tar.xz
mpd-61ba50a9bc8afd4ed71180ab99e218934db8a586.zip
decoder: ignore the SEEK command during startup
While waiting for the input stream to become ready, ignore all commands except STOP. This fixes seeking errors with (remote) songs which the decoder has already finished.
-rw-r--r--src/decoder_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index f8ed86047..ca8511c49 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -109,7 +109,7 @@ static void decoder_run(void)
will be available then */
while (!input_stream.ready) {
- if (dc.command != DECODE_COMMAND_NONE) {
+ if (dc.command == DECODE_COMMAND_STOP) {
input_stream_close(&input_stream);
dc.state = DECODE_STATE_STOP;
return;