aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DecoderControl.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-27 18:38:41 +0200
committerMax Kellermann <max@duempel.org>2014-08-27 18:48:43 +0200
commitba6ba7d4be6f43c5b6ba65a106fbf2ed40a53b45 (patch)
treeb5da178e2de8694c6354794631d3bc3906368442 /src/decoder/DecoderControl.hxx
parent58e6f660f3ff0abc77eb879814188809e9bf1995 (diff)
downloadmpd-ba6ba7d4be6f43c5b6ba65a106fbf2ed40a53b45.tar.gz
mpd-ba6ba7d4be6f43c5b6ba65a106fbf2ed40a53b45.tar.xz
mpd-ba6ba7d4be6f43c5b6ba65a106fbf2ed40a53b45.zip
DecoderControl: use std::chrono::duration for Seek()
Diffstat (limited to '')
-rw-r--r--src/decoder/DecoderControl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/decoder/DecoderControl.hxx b/src/decoder/DecoderControl.hxx
index f78ce1a31..edb7ce6da 100644
--- a/src/decoder/DecoderControl.hxx
+++ b/src/decoder/DecoderControl.hxx
@@ -26,6 +26,7 @@
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "thread/Thread.hxx"
+#include "Chrono.hxx"
#include "util/Error.hxx"
#include <assert.h>
@@ -107,7 +108,7 @@ struct DecoderControl {
bool seek_error;
bool seekable;
- double seek_where;
+ SongTime seek_time;
/** the format of the song file */
AudioFormat in_audio_format;
@@ -365,7 +366,7 @@ public:
void Stop();
- bool Seek(double where);
+ bool Seek(SongTime t);
void Quit();