aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/decoder/flac_plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index 4308f025f..5bcde5421 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -363,7 +363,8 @@ flac_decode_internal(struct decoder * decoder,
decoder_command_finished(decoder);
} else
decoder_seek_error(decoder);
- } else if (flac_get_state(flac_dec) == flac_decoder_eof)
+ } else if (cmd == DECODE_COMMAND_STOP ||
+ flac_get_state(flac_dec) == flac_decoder_eof)
break;
if (!flac_process_single(flac_dec)) {