aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-08 15:37:47 +0200
committerMax Kellermann <max@duempel.org>2011-10-08 15:37:47 +0200
commit71536eb4122c78ccf610531c86b86e86fb5b16ac (patch)
tree56101d5033a17bddc0f16069ff80686875dc177f
parentfe77230d84ae9f1362f943e39e22297dfc5095ce (diff)
downloadmpd-71536eb4122c78ccf610531c86b86e86fb5b16ac.tar.gz
mpd-71536eb4122c78ccf610531c86b86e86fb5b16ac.tar.xz
mpd-71536eb4122c78ccf610531c86b86e86fb5b16ac.zip
decoder/wavpack: don't call WavpackGetMode() twice
Use local variable "is_float".
-rw-r--r--src/decoder/wavpack_decoder_plugin.c2
1 files changed, 1 insertions, 1 deletions
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;