audioaggregator: Also run the audio-specific caps fixation for audio aggregator subclasses that can't convert

This commit is contained in:
Sebastian Dröge 2018-08-16 18:03:37 +03:00
parent 320243050b
commit 0bf207aa53

View file

@ -741,13 +741,9 @@ gst_audio_aggregator_update_src_caps (GstAggregator * agg,
static GstCaps *
gst_audio_aggregator_fixate_src_caps (GstAggregator * agg, GstCaps * caps)
{
GstAudioAggregatorPad *first_configured_pad;
if (!GST_AUDIO_AGGREGATOR_PAD_GET_CLASS (agg->srcpad)->convert_buffer)
return
GST_AGGREGATOR_CLASS
(gst_audio_aggregator_parent_class)->fixate_src_caps (agg, caps);
GstAudioAggregatorPad *first_configured_pad = NULL;
if (GST_AUDIO_AGGREGATOR_PAD_GET_CLASS (agg->srcpad)->convert_buffer)
first_configured_pad = gst_audio_aggregator_get_first_configured_pad (agg);
caps = gst_caps_make_writable (caps);