decoder/mpg123: use integer seek times

This commit is contained in:
Max Kellermann 2014-08-26 11:31:57 +02:00
parent 7f4f8b7c7d
commit 9ca9341384

View File

@ -181,7 +181,7 @@ mpd_mpg123_file_decode(Decoder &decoder, Path path_fs)
cmd = decoder_data(decoder, nullptr, buffer, nbytes, info.bitrate);
if (cmd == DecoderCommand::SEEK) {
off_t c = decoder_seek_where(decoder)*audio_format.sample_rate;
off_t c = decoder_seek_where_frame(decoder);
c = mpg123_seek(handle, c, SEEK_SET);
if (c < 0)
decoder_seek_error(decoder);