PlayerControl: use std::chrono::duration for Seek()

This commit is contained in:
Max Kellermann
2014-08-27 18:50:16 +02:00
parent f8d0ebe92f
commit 0f2a7226fb
4 changed files with 17 additions and 14 deletions

View File

@@ -215,7 +215,8 @@ playlist::SeekSongPosition(PlayerControl &pc, unsigned song, float seek_time)
queued_song = nullptr;
}
if (!pc.Seek(new DetachedSong(queue.GetOrder(i)), seek_time)) {
if (!pc.Seek(new DetachedSong(queue.GetOrder(i)),
SongTime::FromS(seek_time))) {
UpdateQueuedSong(pc, queued_song);
return PlaylistResult::NOT_PLAYING;