From: Matthew Waters Date: Thu, 27 Sep 2018 03:30:35 +0000 (+1000) Subject: gl/overlaycompositor: handle ANY caps features gracefully X-Git-Tag: 1.16.2~413 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1359d0995e7e44f7e4c6f96aab7799beb972f3d8;p=platform%2Fupstream%2Fgst-plugins-base.git gl/overlaycompositor: handle ANY caps features gracefully --- diff --git a/gst-libs/gst/gl/gstgloverlaycompositor.c b/gst-libs/gst/gl/gstgloverlaycompositor.c index 05575aa..bb6dc16 100644 --- a/gst-libs/gst/gl/gstgloverlaycompositor.c +++ b/gst-libs/gst/gl/gstgloverlaycompositor.c @@ -639,8 +639,9 @@ gst_gl_overlay_compositor_add_caps (GstCaps * caps) for (i = 0; i < gst_caps_get_size (composition_caps); i++) { GstCapsFeatures *f = gst_caps_get_features (composition_caps, i); - gst_caps_features_add (f, - GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); + if (!gst_caps_features_is_any (f)) + gst_caps_features_add (f, + GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); } caps = gst_caps_merge (composition_caps, caps);