From d1c81cbd79a92f3c24f76c9690c4860135b5efa6 Mon Sep 17 00:00:00 2001 From: Hou Qi Date: Thu, 23 May 2024 18:42:10 +0900 Subject: [PATCH] glcolorconvert: traverse all structures in caps when transform_caps This is used to avoid negotiation failure between glcolorconvert and downstream element. Part-of: --- .../gst-plugins-base/gst-libs/gst/gl/gstglcolorconvert.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcolorconvert.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcolorconvert.c index a6fe0ab012..d63ea57dd1 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcolorconvert.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcolorconvert.c @@ -1775,11 +1775,6 @@ gst_gl_color_convert_caps_transform_format_info (GstGLContext * context, st = gst_caps_get_structure (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"); st = gst_structure_copy (st);