player/Thread: move start_time variable into the scope

This commit is contained in:
Max Kellermann 2017-12-20 19:15:28 +01:00
parent 54aff33118
commit b2670eaba5

View File

@ -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;