From 71536eb4122c78ccf610531c86b86e86fb5b16ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 8 Oct 2011 15:37:47 +0200 Subject: decoder/wavpack: don't call WavpackGetMode() twice Use local variable "is_float". --- src/decoder/wavpack_decoder_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/decoder/wavpack_decoder_plugin.c b/src/decoder/wavpack_decoder_plugin.c index 24d0c1703..61026842b 100644 --- a/src/decoder/wavpack_decoder_plugin.c +++ b/src/decoder/wavpack_decoder_plugin.c @@ -176,7 +176,7 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek) return; } - if ((WavpackGetMode(wpc) & MODE_FLOAT) == MODE_FLOAT) { + if (is_float) { format_samples = format_samples_float; } else { format_samples = format_samples_int; -- cgit v1.2.3