aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/wavpack_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inputPlugins/wavpack_plugin.c')
-rw-r--r--src/inputPlugins/wavpack_plugin.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c
index 75afb8603..59a482034 100644
--- a/src/inputPlugins/wavpack_plugin.c
+++ b/src/inputPlugins/wavpack_plugin.c
@@ -178,17 +178,16 @@ static void wavpack_decode(struct decoder * decoder,
decoder_clear(decoder);
- where = dc.seekWhere *
+ where = decoder_seek_where(decoder) *
audio_format.sampleRate;
- if (WavpackSeekSample(wpc, where))
+ if (WavpackSeekSample(wpc, where)) {
position = where;
- else
- dc.seekError = 1;
+ decoder_command_finished(decoder);
+ } else
+ decoder_seek_error(decoder);
} else {
- dc.seekError = 1;
+ decoder_seek_error(decoder);
}
-
- decoder_command_finished(decoder);
}
if (decoder_get_command(decoder) == DECODE_COMMAND_STOP)