audioaggregator: Also run the audio-specific caps fixation for audio aggregator subcl...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 16 Aug 2018 15:03:37 +0000 (18:03 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 16 Aug 2018 15:03:37 +0000 (18:03 +0300)
gst-libs/gst/audio/gstaudioaggregator.c

index def43895d9a4f957b68c0577bd56503f37c319c8..54195bda840dedf2b0223f214272ab67db7013d5 100644 (file)
@@ -741,14 +741,10 @@ gst_audio_aggregator_update_src_caps (GstAggregator * agg,
 static GstCaps *
 gst_audio_aggregator_fixate_src_caps (GstAggregator * agg, GstCaps * caps)
 {
-  GstAudioAggregatorPad *first_configured_pad;
+  GstAudioAggregatorPad *first_configured_pad = NULL;
 
-  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);
-
-  first_configured_pad = gst_audio_aggregator_get_first_configured_pad (agg);
+  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);