diff options
author | Max Kellermann <max@duempel.org> | 2009-01-30 15:57:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-30 16:02:06 +0100 |
commit | b78daa5a87501e6a38d5ae06b5f9dedd0550b80e (patch) | |
tree | 2f908402fe33f27c7ce3463f5663fc6f4145befe | |
parent | 730364e4a3eca45a9fa71ed4d4d8f681edc8fd5d (diff) | |
download | mpd-b78daa5a87501e6a38d5ae06b5f9dedd0550b80e.tar.gz mpd-b78daa5a87501e6a38d5ae06b5f9dedd0550b80e.tar.xz mpd-b78daa5a87501e6a38d5ae06b5f9dedd0550b80e.zip |
wavpack: pass NULL if the .wvc file fails to open
The wavpack library seems to use the .wvc stream even if the OPEN_WVC
flag is not set. In this case, pass NULL to be sure libwavpack won't
use it.
Diffstat (limited to '')
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/decoder/wavpack_plugin.c | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,7 @@ ver 0.14.2 (2009/??/??) * decoders: - ffmpeg: added support for the tags comment, genre, year + - wavpack: pass NULL if the .wvc file fails to open * audio outputs: - jack: allocate ring buffers before connecting - jack: clear "shutdown" flag on reconnect diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c index 70a02f284..19defc6ec 100644 --- a/src/decoder/wavpack_plugin.c +++ b/src/decoder/wavpack_plugin.c @@ -517,7 +517,9 @@ wavpack_streamdecode(struct decoder * decoder, struct input_stream *is) wavpack_input_init(&isp, decoder, is); wpc = WavpackOpenFileInputEx( - &mpd_is_reader, &isp, &isp_wvc, error, open_flags, 23 + &mpd_is_reader, &isp, + open_flags & OPEN_WVC ? &isp_wvc : NULL, + error, open_flags, 23 ); if (wpc == NULL) { |