diff --git a/ext/gl/gstglmixer.c b/ext/gl/gstglmixer.c index 9b1dcb5ed8..b6b88046d6 100644 --- a/ext/gl/gstglmixer.c +++ b/ext/gl/gstglmixer.c @@ -340,7 +340,8 @@ gst_gl_mixer_caps_remove_format_info (GstCaps * caps) && gst_caps_features_is_equal (f, GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY)) gst_structure_remove_fields (st, "format", "colorimetry", "chroma-site", - "width", "height", NULL); + NULL); + gst_structure_remove_fields (st, "width", "height", NULL); gst_caps_append_structure_full (res, st, gst_caps_features_copy (f)); } diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 6ea48a5109..511ee5418d 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -718,7 +718,8 @@ gst_gl_filter_caps_remove_format_info (GstCaps * caps) && gst_caps_features_is_equal (f, GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY)) gst_structure_remove_fields (st, "format", "colorimetry", "chroma-site", - "width", "height", NULL); + NULL); + gst_structure_remove_fields (st, "width", "height", NULL); gst_caps_append_structure_full (res, st, gst_caps_features_copy (f)); }