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:
parent
a164d86804
commit
18f082a0d8
@ -702,6 +702,7 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base,
|
|||||||
if (result)
|
if (result)
|
||||||
gst_caps_unref (result);
|
gst_caps_unref (result);
|
||||||
gst_caps_map_in_place (removed, remove_format_from_structure, NULL);
|
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);
|
result = gst_caps_intersect (othercaps, removed);
|
||||||
gst_caps_unref (removed);
|
gst_caps_unref (removed);
|
||||||
if (gst_caps_is_empty (result)) {
|
if (gst_caps_is_empty (result)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user