From: Matthew Waters Date: Tue, 11 Nov 2014 03:23:55 +0000 (+1100) Subject: gl: remove the width/height fields from the caps to support frame resizing X-Git-Tag: 1.19.3~511^2~1989^2~1209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af9b73043e189962485f0dd10f03a46ee9037f72;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/ext/gl/gstglmixer.c b/ext/gl/gstglmixer.c index 9b1dcb5..b6b8804 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 6ea48a5..511ee54 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)); }