From 9fb26b5617579129bdae8ca40801086b294fd18f Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 19 Jun 2010 13:44:17 +0200
Subject: playlist: check "queued" before calling playlist_update_queued_song()

Workaround for an assertion failure.
---
 src/playlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/playlist.c b/src/playlist.c
index 8929e417b..33a0207c3 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -238,7 +238,7 @@ playlist_sync(struct playlist *playlist)
 
 		/* make sure the queued song is always set (if
 		   possible) */
-		if (pc.next_song == NULL)
+		if (pc.next_song == NULL && playlist->queued != -1)
 			playlist_update_queued_song(playlist, NULL);
 	}
 }
-- 
cgit v1.2.3