From ba6ba7d4be6f43c5b6ba65a106fbf2ed40a53b45 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 Aug 2014 18:38:41 +0200 Subject: DecoderControl: use std::chrono::duration for Seek() --- src/decoder/DecoderControl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/decoder/DecoderControl.cxx') diff --git a/src/decoder/DecoderControl.cxx b/src/decoder/DecoderControl.cxx index d78fc66c9..c4892a659 100644 --- a/src/decoder/DecoderControl.cxx +++ b/src/decoder/DecoderControl.cxx @@ -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); -- cgit v1.2.3