From b2670eaba515e7b8a7c97439130a11445a4bcf85 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 20 Dec 2017 19:15:28 +0100 Subject: [PATCH] player/Thread: move start_time variable into the scope --- src/player/Thread.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index af40654e8..eba8df502 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -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;