mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
ext/wavpack/gstwavpackenc.c: Remove workaround for bug #421543. This is fixed in core 0.10.13 and not necessary anymo...
Original commit message from CVS: * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_sink_set_caps): Remove workaround for bug #421543. This is fixed in core 0.10.13 and not necessary anymore as we need at least that core version.
This commit is contained in:
parent
e05417a077
commit
f2fa0a91a6
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-06-09 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_sink_set_caps):
|
||||||
|
Remove workaround for bug #421543. This is fixed in core 0.10.13 and
|
||||||
|
not necessary anymore as we need at least that core version.
|
||||||
|
|
||||||
2007-06-09 Sebastian Dröge <slomo@circular-chaos.org>
|
2007-06-09 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_reset),
|
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_reset),
|
||||||
|
|
|
@ -375,10 +375,7 @@ gst_wavpack_enc_sink_set_caps (GstPad * pad, GstCaps * caps)
|
||||||
GstWavpackEnc *enc = GST_WAVPACK_ENC (gst_pad_get_parent (pad));
|
GstWavpackEnc *enc = GST_WAVPACK_ENC (gst_pad_get_parent (pad));
|
||||||
GstStructure *structure = gst_caps_get_structure (caps, 0);
|
GstStructure *structure = gst_caps_get_structure (caps, 0);
|
||||||
|
|
||||||
/* FIXME: Workaround for bug #421543: calls gst_pad_accept_caps() */
|
if (!gst_structure_get_int (structure, "channels", &enc->channels) ||
|
||||||
/* check caps and put relevant parts into our object attributes */
|
|
||||||
if (!gst_pad_accept_caps (pad, caps) ||
|
|
||||||
!gst_structure_get_int (structure, "channels", &enc->channels) ||
|
|
||||||
!gst_structure_get_int (structure, "rate", &enc->samplerate) ||
|
!gst_structure_get_int (structure, "rate", &enc->samplerate) ||
|
||||||
!gst_structure_get_int (structure, "depth", &enc->depth)) {
|
!gst_structure_get_int (structure, "depth", &enc->depth)) {
|
||||||
GST_ELEMENT_ERROR (enc, LIBRARY, INIT, (NULL),
|
GST_ELEMENT_ERROR (enc, LIBRARY, INIT, (NULL),
|
||||||
|
|
Loading…
Reference in a new issue