diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 11:31:57 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 11:31:57 +0200 |
commit | 9ca9341384490b15f78f79d5f74de0d59e9c387e (patch) | |
tree | 4ba2657228ae0f8f6f4f8b46ef2582bf43dd496a /src/decoder/plugins/Mpg123DecoderPlugin.cxx | |
parent | 7f4f8b7c7d96903e98374928300d54ba467e0d0b (diff) | |
download | mpd-9ca9341384490b15f78f79d5f74de0d59e9c387e.tar.gz mpd-9ca9341384490b15f78f79d5f74de0d59e9c387e.tar.xz mpd-9ca9341384490b15f78f79d5f74de0d59e9c387e.zip |
decoder/mpg123: use integer seek times
Diffstat (limited to '')
-rw-r--r-- | src/decoder/plugins/Mpg123DecoderPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/Mpg123DecoderPlugin.cxx b/src/decoder/plugins/Mpg123DecoderPlugin.cxx index 76702a08f..8779a6568 100644 --- a/src/decoder/plugins/Mpg123DecoderPlugin.cxx +++ b/src/decoder/plugins/Mpg123DecoderPlugin.cxx @@ -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); |