diff options
Diffstat (limited to 'src/decoder_api.c')
-rw-r--r-- | src/decoder_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c index ab8a5f961..08e6b1956 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -168,6 +168,9 @@ need_chunks(struct input_stream *is, bool wait) if ((is == NULL || input_stream_buffer(is) <= 0) && wait) { notify_wait(&dc.notify); notify_signal(&pc.notify); + + if (dc.command != DECODE_COMMAND_STOP) + return dc.command; } return DECODE_COMMAND_NONE; |