glcolorconvert: traverse all structures in caps when transform_caps

This is used to avoid negotiation failure between glcolorconvert
and downstream element.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6908>
This commit is contained in:
Hou Qi 2024-05-23 18:42:10 +09:00
parent 8bd1a3213e
commit d1c81cbd79

View file

@ -1775,11 +1775,6 @@ gst_gl_color_convert_caps_transform_format_info (GstGLContext * context,
st = gst_caps_get_structure (caps, i); st = gst_caps_get_structure (caps, i);
f = gst_caps_get_features (caps, i); f = gst_caps_get_features (caps, i);
/* If this is already expressed by the existing caps
* skip this structure */
if (i > 0 && gst_caps_is_subset_structure_full (res, st, f))
continue;
format = gst_structure_get_value (st, "format"); format = gst_structure_get_value (st, "format");
st = gst_structure_copy (st); st = gst_structure_copy (st);