diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-09 16:04:00 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-09 16:04:00 +0000 |
commit | 0bfe6cabceb61b4dee2fab1afcd4a80cd39237d2 (patch) | |
tree | 87ee0ef81acf89ffa8c3a0cfcfaa68e0e208bc75 /src | |
parent | d50fc3849a0d68679ffb5db312ccb1ab645d431b (diff) | |
download | mpd-0bfe6cabceb61b4dee2fab1afcd4a80cd39237d2.tar.gz mpd-0bfe6cabceb61b4dee2fab1afcd4a80cd39237d2.tar.xz mpd-0bfe6cabceb61b4dee2fab1afcd4a80cd39237d2.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/decode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/decode.c b/src/decode.c index fbc06b45c..d0e3f8a3d 100644 --- a/src/decode.c +++ b/src/decode.c @@ -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) { |