diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 11:31:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 11:31:49 +0200 |
commit | 7f4f8b7c7d96903e98374928300d54ba467e0d0b (patch) | |
tree | 914280cf20eb9d6a84743393058da4dc300b1b30 /src | |
parent | 88705264574f60baaa5d3758bed83e6f67a27df5 (diff) | |
download | mpd-7f4f8b7c7d96903e98374928300d54ba467e0d0b.tar.gz mpd-7f4f8b7c7d96903e98374928300d54ba467e0d0b.tar.xz mpd-7f4f8b7c7d96903e98374928300d54ba467e0d0b.zip |
decoder/mpcdec: use integer seek times
Diffstat (limited to '')
-rw-r--r-- | src/decoder/plugins/MpcdecDecoderPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/MpcdecDecoderPlugin.cxx b/src/decoder/plugins/MpcdecDecoderPlugin.cxx index d7dab05e0..3ad4ff40d 100644 --- a/src/decoder/plugins/MpcdecDecoderPlugin.cxx +++ b/src/decoder/plugins/MpcdecDecoderPlugin.cxx @@ -185,8 +185,8 @@ mpcdec_decode(Decoder &mpd_decoder, InputStream &is) DecoderCommand cmd = DecoderCommand::NONE; do { if (cmd == DecoderCommand::SEEK) { - mpc_int64_t where = decoder_seek_where(mpd_decoder) * - audio_format.sample_rate; + mpc_int64_t where = + decoder_seek_where_frame(mpd_decoder); bool success; success = mpc_demux_seek_sample(demux, where) |