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

@@ -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();