decoder/modplug: use integer seek times

This commit is contained in:
Max Kellermann 2014-08-26 11:11:36 +02:00
parent 69b5929c5a
commit d266898617

View File

@ -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);
}