summaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:29:22 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:29:22 +0200
commitf057e1e17a216cb5d759b89e567e605f88856cd4 (patch)
tree62f11dee5bc268f5759e4edcd629961bded9edab /src/decoder
parent8561c9c5a6e43c40fe9ee6a450ff94ecffe82d69 (diff)
decoder/audiofile: use integer seek times
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/plugins/AudiofileDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/AudiofileDecoderPlugin.cxx b/src/decoder/plugins/AudiofileDecoderPlugin.cxx
index 02f60db34..412cda1e3 100644
--- a/src/decoder/plugins/AudiofileDecoderPlugin.cxx
+++ b/src/decoder/plugins/AudiofileDecoderPlugin.cxx
@@ -234,8 +234,7 @@ audiofile_stream_decode(Decoder &decoder, InputStream &is)
kbit_rate);
if (cmd == DecoderCommand::SEEK) {
- AFframecount frame = decoder_seek_where(decoder) *
- audio_format.sample_rate;
+ AFframecount frame = decoder_seek_where_frame(decoder);
afSeekFrame(fh, AF_DEFAULT_TRACK, frame);
decoder_command_finished(decoder);