aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DecoderControl.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder/DecoderControl.cxx5
1 files changed, 2 insertions, 3 deletions
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);