Commit d82061b7 authored by Max Kellermann's avatar Max Kellermann

decoder_api: don't ignore DECODE_COMMAND_STOP

When the decoder thread is waiting for free chunks in the music pipe, don't ignore the STOP command. Just return dc.command without further checks.
parent 9069a244
...@@ -147,7 +147,6 @@ need_chunks(struct input_stream *is, bool wait) ...@@ -147,7 +147,6 @@ need_chunks(struct input_stream *is, bool wait)
notify_wait(&dc.notify); notify_wait(&dc.notify);
notify_signal(&pc.notify); notify_signal(&pc.notify);
if (dc.command != DECODE_COMMAND_STOP)
return dc.command; return dc.command;
} }
......
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