From 87573ba66c77bb7cc060460eb29e31412f1492b4 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 2 Feb 2016 16:21:14 +1100 Subject: [PATCH] glcolorconvert: don't skip subset structures We may need them to transform into a different set of formats. Fixes YUV->YUV with two glcolorconverts, e.g: format=I420 ! glcolorconvert ! glcolorconvert ! format=NV12 --- gst-libs/gst/gl/gstglcolorconvert.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index b03b17c577..afb6aff5c0 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -855,11 +855,6 @@ gst_gl_color_convert_caps_transform_format_info (GstCaps * caps) 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); if (GST_VALUE_HOLDS_LIST (format)) {