Commit 0bfe6cab authored by J. Alexander Treuman's avatar J. Alexander Treuman

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
parent d50fc384
......@@ -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) {
......
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