aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.cxx
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/PlayerControl.cxx
parentf8d0ebe92f9ceb4be761078395ef51a15fb0ae47 (diff)
downloadmpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.gz
mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.xz
mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.zip
PlayerControl: use std::chrono::duration for Seek()
Diffstat (limited to 'src/PlayerControl.cxx')
-rw-r--r--src/PlayerControl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlayerControl.cxx b/src/PlayerControl.cxx
index 244b64f5c..4f1c3d2ac 100644
--- a/src/PlayerControl.cxx
+++ b/src/PlayerControl.cxx
@@ -221,7 +221,7 @@ PlayerControl::EnqueueSong(DetachedSong *song)
}
bool
-PlayerControl::Seek(DetachedSong *song, float seek_time)
+PlayerControl::Seek(DetachedSong *song, SongTime t)
{
assert(song != nullptr);
@@ -229,7 +229,7 @@ PlayerControl::Seek(DetachedSong *song, float seek_time)
delete next_song;
next_song = song;
- seek_where = seek_time;
+ seek_time = t;
SynchronousCommand(PlayerCommand::SEEK);
Unlock();