mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
wavpackenc: do not set output caps directly
... but use base class function instead.
This commit is contained in:
parent
fba47d17e8
commit
1e16b61c8c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue