aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-09 16:04:00 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-09 16:04:00 +0000
commit0bfe6cabceb61b4dee2fab1afcd4a80cd39237d2 (patch)
tree87ee0ef81acf89ffa8c3a0cfcfaa68e0e208bc75 /src
parentd50fc3849a0d68679ffb5db312ccb1ab645d431b (diff)
downloadmpd-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 'src')
-rw-r--r--src/decode.c4
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) {