aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-09-23 23:29:36 +0200
committerMax Kellermann <max@duempel.org>2010-09-23 23:29:36 +0200
commita14cd97f56bd304bccb1a95a0e550c8728f4f002 (patch)
tree089a34593a4f4185a7e8f17391d932806534331f
parent0955f33a86177ab8f0e43df0eb730aa81a1cfbb1 (diff)
downloadmpd-a14cd97f56bd304bccb1a95a0e550c8728f4f002.tar.gz
mpd-a14cd97f56bd304bccb1a95a0e550c8728f4f002.tar.xz
mpd-a14cd97f56bd304bccb1a95a0e550c8728f4f002.zip
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.
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}