Commit 2065e329 authored by Max Kellermann's avatar Max Kellermann

queue/PlaylistControl: clear "queued" before calling LockSeek()

This is necessary to avoid an assertion failure in UpdateQueuedSong() after LockSeek() has failed.
parent ac15581c
......@@ -212,12 +212,13 @@ playlist::SeekSongOrder(PlayerControl &pc, unsigned i, SongTime seek_time,
queued_song = nullptr;
}
queued = -1;
if (!pc.LockSeek(new DetachedSong(queue.GetOrder(i)), seek_time, error)) {
UpdateQueuedSong(pc, queued_song);
return false;
}
queued = -1;
UpdateQueuedSong(pc, nullptr);
return true;
......
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