Commit e0be3aad authored by Max Kellerman's avatar Max Kellerman Committed by Eric Wong

assert dc.state == DECODE_STATE_STOP

During the decoder thread main loop, dc.state must be DECODE_STATE_STOP. Explicitly assigning it after the "dc.stop" check is redundant. git-svn-id: https://svn.musicpd.org/mpd/trunk@7366 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 3c3620b3
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment