aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/WavpackDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:39:58 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:39:58 +0200
commitf64da46a984cd4ea4f512b13af722b54c33fc1f6 (patch)
tree747c92524ed6ee783e07d7808fb45edf6d5947fd /src/decoder/plugins/WavpackDecoderPlugin.cxx
parent2052a029ee0e6f75c4b7248288940248306694f2 (diff)
downloadmpd-f64da46a984cd4ea4f512b13af722b54c33fc1f6.tar.gz
mpd-f64da46a984cd4ea4f512b13af722b54c33fc1f6.tar.xz
mpd-f64da46a984cd4ea4f512b13af722b54c33fc1f6.zip
decoder/wavpack: use integer seek times
Diffstat (limited to 'src/decoder/plugins/WavpackDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/WavpackDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx
index 248034350..870a1a80d 100644
--- a/src/decoder/plugins/WavpackDecoderPlugin.cxx
+++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx
@@ -177,8 +177,7 @@ wavpack_decode(Decoder &decoder, WavpackContext *wpc, bool can_seek)
while (cmd != DecoderCommand::STOP) {
if (cmd == DecoderCommand::SEEK) {
if (can_seek) {
- unsigned where = decoder_seek_where(decoder) *
- audio_format.sample_rate;
+ auto where = decoder_seek_where_frame(decoder);
if (WavpackSeekSample(wpc, where)) {
decoder_command_finished(decoder);