aboutsummaryrefslogtreecommitdiffstats
path: root/src/player/Thread.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/player/Thread.cxx')
-rw-r--r--src/player/Thread.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index 993bcfedf..b251cddfb 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -324,9 +324,7 @@ Player::StartDecoder(MusicPipe &_pipe)
assert(queued || pc.command == PlayerCommand::SEEK);
assert(pc.next_song != nullptr);
- SongTime start_time = pc.next_song->GetStartTime();
- if (pc.command == PlayerCommand::SEEK)
- start_time += pc.seek_time;
+ SongTime start_time = pc.next_song->GetStartTime() + pc.seek_time;
dc.Start(new DetachedSong(*pc.next_song),
start_time, pc.next_song->GetEndTime(),
@@ -950,9 +948,7 @@ Player::Run()
pc.Lock();
pc.state = PlayerState::PLAY;
-
- if (pc.command == PlayerCommand::SEEK)
- elapsed_time = pc.seek_time;
+ elapsed_time = pc.seek_time;
pc.CommandFinished();