Commit 9ca93413 authored by Max Kellermann's avatar Max Kellermann

decoder/mpg123: use integer seek times

parent 7f4f8b7c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment