Remove a useless if (quit) block. It's enclosed in two while loops: the
top depending on !quit, which doesn't set it anywhere before the if (quit) block is reached, and the inner one which doesn't set quit at all. Since it's a local variable and can't be modified externally, it'll never be hit. git-svn-id: https://svn.musicpd.org/mpd/trunk@6524 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
d50fc3849a
commit
0bfe6cabce
@ -649,10 +649,6 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
|
||||
while (pc->queueState == PLAYER_QUEUE_DECODE ||
|
||||
pc->queueLockState == PLAYER_QUEUE_LOCKED) {
|
||||
processDecodeInput();
|
||||
if (quit) {
|
||||
quitDecode(pc, dc);
|
||||
return;
|
||||
}
|
||||
my_usleep(10000);
|
||||
}
|
||||
if (pc->queueState != PLAYER_QUEUE_PLAY) {
|
||||
|
Loading…
Reference in New Issue
Block a user