From d82061b7ff19413985ad34690b2bd169bc2f3651 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Jan 2009 18:15:25 +0100 Subject: 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. --- src/decoder_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/decoder_api.c') 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; -- cgit v1.2.3