aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:30:21 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:30:21 +0200
commit88705264574f60baaa5d3758bed83e6f67a27df5 (patch)
treeaef00a23d1fbb09d0553f0de03a91c6d13189ce8 /src/decoder/plugins
parentf057e1e17a216cb5d759b89e567e605f88856cd4 (diff)
downloadmpd-88705264574f60baaa5d3758bed83e6f67a27df5.tar.gz
mpd-88705264574f60baaa5d3758bed83e6f67a27df5.tar.xz
mpd-88705264574f60baaa5d3758bed83e6f67a27df5.zip
decoder/flac: use integer seek times
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r--src/decoder/plugins/FlacDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/FlacDecoderPlugin.cxx b/src/decoder/plugins/FlacDecoderPlugin.cxx
index 39a0fce73..60772398c 100644
--- a/src/decoder/plugins/FlacDecoderPlugin.cxx
+++ b/src/decoder/plugins/FlacDecoderPlugin.cxx
@@ -181,8 +181,7 @@ flac_decoder_loop(struct flac_data *data, FLAC__StreamDecoder *flac_dec,
if (cmd == DecoderCommand::SEEK) {
FLAC__uint64 seek_sample = t_start +
- decoder_seek_where(decoder) *
- data->audio_format.sample_rate;
+ decoder_seek_where_frame(decoder);
if (seek_sample >= t_start &&
(t_end == 0 || seek_sample <= t_end) &&
FLAC__stream_decoder_seek_absolute(flac_dec, seek_sample)) {