diff options
author | Max Kellermann <max@duempel.org> | 2015-11-05 00:29:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-05 00:29:03 +0100 |
commit | 990f473bb3b590de34931c9dfa485e2a33d832fd (patch) | |
tree | 2e3b6f486a9907477776d14c34be0e047af93556 /src/player/Control.hxx | |
parent | cf1de782051ec0be5db1076c9fefb2e9df09048f (diff) | |
download | mpd-990f473bb3b590de34931c9dfa485e2a33d832fd.tar.gz mpd-990f473bb3b590de34931c9dfa485e2a33d832fd.tar.xz mpd-990f473bb3b590de34931c9dfa485e2a33d832fd.zip |
player/Control: initialize seek_time in EnqueueSongLocked()
Allows removing a few special cases in the player thread.
Diffstat (limited to '')
-rw-r--r-- | src/player/Control.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |