From 61ba50a9bc8afd4ed71180ab99e218934db8a586 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 20 Nov 2008 21:08:16 +0100 Subject: 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. --- src/decoder_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3