player/Thread: move start_time variable into the scope
This commit is contained in:
parent
54aff33118
commit
b2670eaba5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user