added enum player_queue_state

This commit is contained in:
Max Kellermann
2008-08-26 08:27:16 +02:00
parent ae00330285
commit 55377fbd9f
3 changed files with 19 additions and 11 deletions

View File

@@ -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);