aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
commit55377fbd9f0f09fd81c031381dcfc111d867d366 (patch)
treeb2a3bf07df30dae717997589dc91dc1d831b4f7f /src/playlist.c
parentae0033028595b96352c1c769eaeeeaa0c12bccb9 (diff)
downloadmpd-55377fbd9f0f09fd81c031381dcfc111d867d366.tar.gz
mpd-55377fbd9f0f09fd81c031381dcfc111d867d366.tar.xz
mpd-55377fbd9f0f09fd81c031381dcfc111d867d366.zip
added enum player_queue_state
Diffstat (limited to '')
-rw-r--r--src/playlist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 2fbe8e126..cc2a67f2f 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -553,6 +553,12 @@ static void clearPlayerQueue(void)
{
playlist.queued = -1;
switch (getPlayerQueueState()) {
+ case PLAYER_QUEUE_BLANK:
+ case PLAYER_QUEUE_DECODE:
+ case PLAYER_QUEUE_STOP:
+ case PLAYER_QUEUE_EMPTY:
+ break;
+
case PLAYER_QUEUE_FULL:
DEBUG("playlist: dequeue song\n");
setQueueState(PLAYER_QUEUE_BLANK);