audioconvert: remove layout from structure when fixating caps
authorMatej Knopp <matej.knopp@gmail.com>
Sat, 29 Sep 2018 08:39:46 +0000 (10:39 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Fri, 5 Oct 2018 12:40:13 +0000 (15:40 +0300)
otherwise caps intersection always fails when converting non-interleaved to interleaved audio

https://bugzilla.gnome.org/show_bug.cgi?id=797225

gst/audioconvert/gstaudioconvert.c

index e93ddf4..b2d8261 100644 (file)
@@ -702,6 +702,7 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base,
     if (result)
       gst_caps_unref (result);
     gst_caps_map_in_place (removed, remove_format_from_structure, NULL);
+    gst_caps_map_in_place (removed, remove_layout_from_structure, NULL);
     result = gst_caps_intersect (othercaps, removed);
     gst_caps_unref (removed);
     if (gst_caps_is_empty (result)) {