aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder_thread.c')
-rw-r--r--src/decoder_thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index e9dead4ed..95dbf8d75 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -96,6 +96,9 @@ decoder_stream_decode(const struct decoder_plugin *plugin,
assert(input_stream->ready);
assert(decoder->dc->state == DECODE_STATE_START);
+ if (decoder->dc->command == DECODE_COMMAND_STOP)
+ return true;
+
decoder_unlock(decoder->dc);
/* rewind the stream, so each plugin gets a fresh start */
@@ -124,6 +127,9 @@ decoder_file_decode(const struct decoder_plugin *plugin,
assert(g_path_is_absolute(path));
assert(decoder->dc->state == DECODE_STATE_START);
+ if (decoder->dc->command == DECODE_COMMAND_STOP)
+ return true;
+
decoder_unlock(decoder->dc);
decoder_plugin_file_decode(plugin, decoder, path);