aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:11:36 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:11:36 +0200
commitd26689861791e1d58fd55df1592d23334b970229 (patch)
tree9543370294bac91ca543a39f73731cdf4f3c5845 /src
parent69b5929c5a0d81c8fd45c315aad84603f68c6cea (diff)
downloadmpd-d26689861791e1d58fd55df1592d23334b970229.tar.gz
mpd-d26689861791e1d58fd55df1592d23334b970229.tar.xz
mpd-d26689861791e1d58fd55df1592d23334b970229.zip
decoder/modplug: use integer seek times
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/ModplugDecoderPlugin.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/decoder/plugins/ModplugDecoderPlugin.cxx b/src/decoder/plugins/ModplugDecoderPlugin.cxx
index 110955367..8c56f34c1 100644
--- a/src/decoder/plugins/ModplugDecoderPlugin.cxx
+++ b/src/decoder/plugins/ModplugDecoderPlugin.cxx
@@ -166,10 +166,7 @@ mod_decode(Decoder &decoder, InputStream &is)
0);
if (cmd == DecoderCommand::SEEK) {
- float where = decoder_seek_where(decoder);
-
- ModPlug_Seek(f, (int)(where * 1000.0));
-
+ ModPlug_Seek(f, decoder_seek_where_ms(decoder));
decoder_command_finished(decoder);
}