aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-10 18:03:38 +0100
committerMax Kellermann <max@duempel.org>2009-03-10 18:03:38 +0100
commitc6a43b691f88d724420961e0a8074fcb0882f593 (patch)
tree7df9e5765773aaa43b617c14f3a5e070f87eb5b6
parent7d52284a96c634a9e36756ba88423d8fad346c6f (diff)
downloadmpd-c6a43b691f88d724420961e0a8074fcb0882f593.tar.gz
mpd-c6a43b691f88d724420961e0a8074fcb0882f593.tar.xz
mpd-c6a43b691f88d724420961e0a8074fcb0882f593.zip
player_thread: clear player.queued after failure
When pc.next_song is reset due to a decoder failure, also reset the player.queued flag. player.queued must not be true when there is no pc.next_song.
Diffstat (limited to '')
-rw-r--r--src/player_thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 82628ddc0..bc10793a6 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -142,6 +142,7 @@ player_wait_for_decoder(struct player *player)
pc.errored_song = dc.next_song;
pc.error = PLAYER_ERROR_FILE;
pc.next_song = NULL;
+ player->queued = false;
return false;
}