aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:12:20 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:15:40 +0200
commita234de1ee309c3a074a9ab0c3441b60197ff27d7 (patch)
tree51c7a515f25672c9cbf85d4e40d04bd8a026e436
parentd26689861791e1d58fd55df1592d23334b970229 (diff)
downloadmpd-a234de1ee309c3a074a9ab0c3441b60197ff27d7.tar.gz
mpd-a234de1ee309c3a074a9ab0c3441b60197ff27d7.tar.xz
mpd-a234de1ee309c3a074a9ab0c3441b60197ff27d7.zip
decoder/gme: use integer seek times
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/GmeDecoderPlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx
index 469da2540..e10efcbed 100644
--- a/src/decoder/plugins/GmeDecoderPlugin.cxx
+++ b/src/decoder/plugins/GmeDecoderPlugin.cxx
@@ -194,8 +194,8 @@ gme_file_decode(Decoder &decoder, Path path_fs)
cmd = decoder_data(decoder, nullptr, buf, sizeof(buf), 0);
if (cmd == DecoderCommand::SEEK) {
- float where = decoder_seek_where(decoder);
- gme_err = gme_seek(emu, int(where * 1000));
+ unsigned where = decoder_seek_where_ms(decoder);
+ gme_err = gme_seek(emu, where);
if (gme_err != nullptr)
LogWarning(gme_domain, gme_err);
decoder_command_finished(decoder);