aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-27 18:50:16 +0200
committerMax Kellermann <max@duempel.org>2014-08-27 19:07:16 +0200
commit0f2a7226fb36b3b04b1fa408882a8f0920081850 (patch)
tree009050341ed7e6335c7810a1027c00d462bae38c /src/queue
parentf8d0ebe92f9ceb4be761078395ef51a15fb0ae47 (diff)
downloadmpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.gz
mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.xz
mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.zip
PlayerControl: use std::chrono::duration for Seek()
Diffstat (limited to '')
-rw-r--r--src/queue/PlaylistControl.cxx3
1 files changed, 2 insertions, 1 deletions
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;