From 199ea5f2c1bf76846e28b1283c537a01a85dd0b6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:12:11 +0000 Subject: do not check dc->start after loop dc->start cannot be true after the loop, because it was the loop condition. dc->start could have been set by another thread between the while loop and the if, but I suspect this is not the case the author intended, so we just remove the dc->start check. git-svn-id: https://svn.musicpd.org/mpd/trunk@7256 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decode.c') diff --git a/src/decode.c b/src/decode.c index 98bcae6a5..668d08365 100644 --- a/src/decode.c +++ b/src/decode.c @@ -144,7 +144,7 @@ static int waitOnDecode(PlayerControl * pc, DecoderControl * dc, while (dc->start) player_wakeup_decoder(); - if (dc->start || dc->error != DECODE_ERROR_NOERROR) { + if (dc->error != DECODE_ERROR_NOERROR) { pc->errored_song = pc->current_song; pc->error = PLAYER_ERROR_FILE; quitDecode(pc, dc); -- cgit v1.2.3