Commit b2670eab authored by Max Kellermann's avatar Max Kellermann

player/Thread: move start_time variable into the scope

parent 54aff331
......@@ -580,8 +580,6 @@ Player::SeekDecoder() noexcept
pc.outputs.Cancel();
const SongTime start_time = pc.next_song->GetStartTime();
if (!dc.LockIsCurrentSong(*pc.next_song)) {
/* the decoder is already decoding the "next" song -
stop it and start the previous song again */
......@@ -605,6 +603,7 @@ Player::SeekDecoder() noexcept
ClearAndReplacePipe(dc.pipe);
}
const SongTime start_time = pc.next_song->GetStartTime();
pc.next_song.reset();
queued = false;
......
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