Commit 9fb26b56 authored by Max Kellermann's avatar Max Kellermann

playlist: check "queued" before calling playlist_update_queued_song()

Workaround for an assertion failure.
parent 442b3275
......@@ -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);
}
}
......
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