From 0f2a7226fb36b3b04b1fa408882a8f0920081850 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 Aug 2014 18:50:16 +0200 Subject: PlayerControl: use std::chrono::duration for Seek() --- src/queue/PlaylistControl.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/queue/PlaylistControl.cxx') diff --git a/src/queue/PlaylistControl.cxx b/src/queue/PlaylistControl.cxx index db0b8a25d..5d4a910b0 100644 --- a/src/queue/PlaylistControl.cxx +++ b/src/queue/PlaylistControl.cxx @@ -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; -- cgit v1.2.3