From 36ade75f4a618d66163ba71035048447fe2871de Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 11 Nov 2014 14:23:55 +1100 Subject: [PATCH] gl: remove the width/height fields from the caps to support frame resizing It was previously only occuring with sysmem caps features https://bugzilla.gnome.org/show_bug.cgi?id=739334 --- ext/gl/gstglmixer.c | 3 ++- gst-libs/gst/gl/gstglfilter.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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)); }