wavpackenc: do not set output caps directly

... but use base class function instead.
This commit is contained in:
Mark Nauwelaerts 2012-03-14 10:39:53 +01:00
parent fba47d17e8
commit 1e16b61c8c

View file

@ -411,7 +411,7 @@ gst_wavpack_enc_set_format (GstAudioEncoder * benc, GstAudioInfo * info)
if (mask)
gst_caps_set_simple (caps, "channel-mask", GST_TYPE_BITMASK, mask, NULL);
if (!gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (enc), caps))
if (!gst_audio_encoder_set_output_format (benc, caps))
goto setting_src_caps_failed;
gst_caps_unref (caps);