diff options
author | Max Kellermann <max@duempel.org> | 2009-01-13 18:15:25 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-13 18:15:25 +0100 |
commit | d82061b7ff19413985ad34690b2bd169bc2f3651 (patch) | |
tree | 22b9a958f4a9efdef3c0260376ded80cad99889b /src/decoder | |
parent | 9069a244a408a0e950a43caa9167f4aa610130bc (diff) | |
download | mpd-d82061b7ff19413985ad34690b2bd169bc2f3651.tar.gz mpd-d82061b7ff19413985ad34690b2bd169bc2f3651.tar.xz mpd-d82061b7ff19413985ad34690b2bd169bc2f3651.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c index 63bb0f2f2..dad0456b3 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -147,8 +147,7 @@ need_chunks(struct input_stream *is, bool wait) notify_wait(&dc.notify); notify_signal(&pc.notify); - if (dc.command != DECODE_COMMAND_STOP) - return dc.command; + return dc.command; } return DECODE_COMMAND_NONE; |