diff options
author | Max Kellermann <max@duempel.org> | 2011-10-08 15:37:47 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-08 15:37:47 +0200 |
commit | 71536eb4122c78ccf610531c86b86e86fb5b16ac (patch) | |
tree | 56101d5033a17bddc0f16069ff80686875dc177f /src/decoder/wavpack_decoder_plugin.c | |
parent | fe77230d84ae9f1362f943e39e22297dfc5095ce (diff) | |
download | mpd-71536eb4122c78ccf610531c86b86e86fb5b16ac.tar.gz mpd-71536eb4122c78ccf610531c86b86e86fb5b16ac.tar.xz mpd-71536eb4122c78ccf610531c86b86e86fb5b16ac.zip |
decoder/wavpack: don't call WavpackGetMode() twice
Use local variable "is_float".
Diffstat (limited to '')
-rw-r--r-- | src/decoder/wavpack_decoder_plugin.c | 2 |
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; |