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.
This commit is contained in:
Max Kellermann
2009-01-13 18:15:25 +01:00
parent 9069a244a4
commit d82061b7ff

View File

@@ -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;
} }