gl: remove the width/height fields from the caps to support frame resizing
authorMatthew Waters <matthew@centricular.com>
Tue, 11 Nov 2014 03:23:55 +0000 (14:23 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:49 +0000 (19:31 +0000)
It was previously only occuring with sysmem caps features

https://bugzilla.gnome.org/show_bug.cgi?id=739334

ext/gl/gstglmixer.c
gst-libs/gst/gl/gstglfilter.c

index 9b1dcb5..b6b8804 100644 (file)
@@ -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));
   }
index 6ea48a5..511ee54 100644 (file)
@@ -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));
   }