From a14cd97f56bd304bccb1a95a0e550c8728f4f002 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 23 Sep 2010 23:29:36 +0200
Subject: playlist: fix "queued" check in playlist_sync()

The check was meant to fix an assertion failure, but it was the wrong
way around.  This broke cross-fading most of the time.
---
 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 33a0207c3..a63dd62e4 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 && playlist->queued != -1)
+		if (pc.next_song == NULL && playlist->queued < 0)
 			playlist_update_queued_song(playlist, NULL);
 	}
 }
-- 
cgit v1.2.3