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:
parent
0955f33a86
commit
a14cd97f56
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue