Commit 61ba50a9 authored by Max Kellermann's avatar Max Kellermann

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.
parent 927bf45f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment