aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/wavpack_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-27 20:10:45 +0100
committerMax Kellermann <max@duempel.org>2009-12-27 20:10:45 +0100
commit333e11d0ebb255a2cd04cfde805e68f257b8a2f5 (patch)
tree33f76a9fee04cdbe0aee7ec1956dbe35a8b7635f /src/decoder/wavpack_plugin.c
parent58da24b1cb685b5235dc5a528651b96a35b5b5bf (diff)
parentb1cc760aa5d99f726f52b4c17e06a9f72a0ef58a (diff)
downloadmpd-333e11d0ebb255a2cd04cfde805e68f257b8a2f5.tar.gz
mpd-333e11d0ebb255a2cd04cfde805e68f257b8a2f5.tar.xz
mpd-333e11d0ebb255a2cd04cfde805e68f257b8a2f5.zip
Merged release 0.15.7 from branch 'v0.15.x'
Conflicts: NEWS configure.ac src/decoder_api.c
Diffstat (limited to 'src/decoder/wavpack_plugin.c')
-rw-r--r--src/decoder/wavpack_plugin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c
index 8b80b1476..fbcebb803 100644
--- a/src/decoder/wavpack_plugin.c
+++ b/src/decoder/wavpack_plugin.c
@@ -201,10 +201,9 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek,
do {
if (decoder_get_command(decoder) == DECODE_COMMAND_SEEK) {
if (can_seek) {
- int where;
+ unsigned where = decoder_seek_where(decoder) *
+ audio_format.sample_rate;
- where = decoder_seek_where(decoder);
- where *= audio_format.sample_rate;
if (WavpackSeekSample(wpc, where)) {
decoder_command_finished(decoder);
} else {