aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-13 18:15:25 +0100
committerMax Kellermann <max@duempel.org>2009-01-13 23:10:08 +0100
commit7beab74d87cb05d19725da17dc5fe7cc70d383e6 (patch)
tree0430c022e94379df644373ac77e44b267fd56f0a
parent0b1cf72bcf8e05ffcd5f3238336fb4f51627acca (diff)
downloadmpd-7beab74d87cb05d19725da17dc5fe7cc70d383e6.tar.gz
mpd-7beab74d87cb05d19725da17dc5fe7cc70d383e6.tar.xz
mpd-7beab74d87cb05d19725da17dc5fe7cc70d383e6.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.
-rw-r--r--src/decoder_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 8a7e2a4da..0a9bc2368 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -174,8 +174,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;