diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-09 16:21:02 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-09 16:21:02 +0000 |
commit | 857bc80049446c4a93cbcc65c509bee6906db514 (patch) | |
tree | e2dd39cd06b57552025a167420d0ac5a02ebdd30 /ext/wavpack/gstwavpackparse.c | |
parent | fb183ffa59eeb80e679c16eef3b57ac049cbf4d9 (diff) |
ext/wavpack/: Workaround the non-existance of WavpackGetChannelMask in Wavpack versions below 4.40.0.
Original commit message from CVS:
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_chain):
* ext/wavpack/gstwavpackparse.c:
(gst_wavpack_parse_create_src_pad):
Workaround the non-existance of WavpackGetChannelMask in Wavpack
versions below 4.40.0.
Diffstat (limited to 'ext/wavpack/gstwavpackparse.c')
-rw-r--r-- | ext/wavpack/gstwavpackparse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/wavpack/gstwavpackparse.c b/ext/wavpack/gstwavpackparse.c index 71c4d83d..0c34401e 100644 --- a/ext/wavpack/gstwavpackparse.c +++ b/ext/wavpack/gstwavpackparse.c @@ -836,8 +836,11 @@ gst_wavpack_parse_create_src_pad (GstWavpackParse * wvparse, GstBuffer * buf, "channels", G_TYPE_INT, wvparse->channels, "rate", G_TYPE_INT, wvparse->samplerate, "framed", G_TYPE_BOOLEAN, TRUE, NULL); - +#ifdef WAVPACK_OLD_API + channel_mask = wpc->config.channel_mask; +#else channel_mask = WavpackGetChannelMask (wpc); +#endif if (channel_mask == 0) channel_mask = gst_wavpack_get_default_channel_mask (wvparse->channels); |