aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decode.c b/src/decode.c
index 297f6110d..96a84b21a 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -325,10 +325,11 @@ static void * decoder_task(mpd_unused void *arg)
notifyEnter(&dc.notify);
while (1) {
+ assert(dc.state == DECODE_STATE_STOP);
+
if (dc.start || dc.seek) {
decodeStart();
} else if (dc.stop) {
- dc.state = DECODE_STATE_STOP;
dc.stop = 0;
decoder_wakeup_player();
} else {