playlist: check "queued" before calling playlist_update_queued_song()

Workaround for an assertion failure.
This commit is contained in:
Max Kellermann 2010-06-19 13:44:17 +02:00
parent 442b327582
commit 9fb26b5617

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)
if (pc.next_song == NULL && playlist->queued != -1)
playlist_update_queued_song(playlist, NULL);
}
}