Commit 199ea5f2 authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

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
parent e63f388b
......@@ -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);
......
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