PlayerThread: use SongTime for elapsed_time

This commit is contained in:
Max Kellermann
2014-08-29 13:07:38 +02:00
parent 2289968634
commit 75a89c5983
5 changed files with 17 additions and 17 deletions

View File

@@ -252,7 +252,7 @@ playlist::SeekCurrent(PlayerControl &pc,
status.state != PlayerState::PAUSE)
return PlaylistResult::NOT_PLAYING;
seek_time += SignedSongTime::FromS(status.elapsed_time);
seek_time += status.elapsed_time;
if (seek_time.IsNegative())
seek_time = SignedSongTime::zero();
}