From 990f473bb3b590de34931c9dfa485e2a33d832fd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Nov 2015 00:29:03 +0100 Subject: player/Control: initialize seek_time in EnqueueSongLocked() Allows removing a few special cases in the player thread. --- src/player/Control.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/player/Control.hxx') diff --git a/src/player/Control.hxx b/src/player/Control.hxx index a2807a9a1..2b15e89d8 100644 --- a/src/player/Control.hxx +++ b/src/player/Control.hxx @@ -417,6 +417,7 @@ private: assert(next_song == nullptr); next_song = song; + seek_time = SongTime::zero(); SynchronousCommand(PlayerCommand::QUEUE); } -- cgit v1.2.3