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:
parent
9069a244a4
commit
d82061b7ff
@ -147,8 +147,7 @@ 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return DECODE_COMMAND_NONE;
|
return DECODE_COMMAND_NONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user