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.
This commit is contained in:
Max Kellermann 2010-09-23 23:29:36 +02:00
parent 0955f33a86
commit a14cd97f56
1 changed files with 1 additions and 1 deletions

View File

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