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

This commit is contained in:
Max Kellermann
2014-08-27 18:38:41 +02:00
parent 58e6f660f3
commit ba6ba7d4be
5 changed files with 10 additions and 10 deletions

View File

@@ -105,16 +105,15 @@ DecoderControl::Stop()
}
bool
DecoderControl::Seek(double where)
DecoderControl::Seek(SongTime t)
{
assert(state != DecoderState::START);
assert(where >= 0.0);
if (state == DecoderState::STOP ||
state == DecoderState::ERROR || !seekable)
return false;
seek_where = where;
seek_time = t;
seek_error = false;
LockSynchronousCommand(DecoderCommand::SEEK);