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
This commit is contained in:
parent
3c3620b301
commit
e0be3aad20
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user