aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder_thread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 97e92d295..a48f4160b 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -196,9 +196,8 @@ static void decoder_run_song(const struct song *song, const char *uri)
pcm_convert_deinit(&decoder.conv_state);
/* flush the last chunk */
- if (decoder.chunk != NULL &&
- decoder_flush_chunk(&decoder, NULL) != DECODE_COMMAND_NONE)
- music_pipe_cancel(decoder.chunk);
+ if (decoder.chunk != NULL)
+ decoder_flush_chunk(&decoder);
if (close_instream)
input_stream_close(&input_stream);