Commit a14cd97f authored by Max Kellermann's avatar Max Kellermann

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.
parent 0955f33a
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment