audioconvert: remove layout from structure when fixating caps

otherwise caps intersection always fails when converting non-interleaved to interleaved audio

https://bugzilla.gnome.org/show_bug.cgi?id=797225
This commit is contained in:
Matej Knopp 2018-09-29 10:39:46 +02:00 committed by George Kiagiadakis
parent a164d86804
commit 18f082a0d8

View 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)) {