aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/GmeDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 21:52:28 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 22:27:04 +0200
commit0c2d767f6fca030a8da3202c05b3eb80ba176ef1 (patch)
tree481acab9b4a1fadf8e208142bde510167b406d7e /src/decoder/plugins/GmeDecoderPlugin.cxx
parent02e697032f7f375e67acc349ada6d849edf51aa3 (diff)
downloadmpd-0c2d767f6fca030a8da3202c05b3eb80ba176ef1.tar.gz
mpd-0c2d767f6fca030a8da3202c05b3eb80ba176ef1.tar.xz
mpd-0c2d767f6fca030a8da3202c05b3eb80ba176ef1.zip
DecoderAPI: use std::chrono::duration for decoder_seek*()
For type safety and code readability.
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/GmeDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx
index e10efcbed..5588e2a1e 100644
--- a/src/decoder/plugins/GmeDecoderPlugin.cxx
+++ b/src/decoder/plugins/GmeDecoderPlugin.cxx
@@ -194,7 +194,7 @@ gme_file_decode(Decoder &decoder, Path path_fs)
cmd = decoder_data(decoder, nullptr, buf, sizeof(buf), 0);
if (cmd == DecoderCommand::SEEK) {
- unsigned where = decoder_seek_where_ms(decoder);
+ unsigned where = decoder_seek_time(decoder).ToMS();
gme_err = gme_seek(emu, where);
if (gme_err != nullptr)
LogWarning(gme_domain, gme_err);