diff options
author | Matthew Waters <matthew@centricular.com> | 2018-09-27 13:30:35 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2018-11-08 19:40:18 +1100 |
commit | 94f0848cf2ca2262bcc8063ea74bddf55ff53849 (patch) | |
tree | a90dfdae5e38c213fa2370c4d1ba653739ec908a /gst-libs | |
parent | a4bc7f072c1c8639b5ca3080d96a19a97142a4a5 (diff) | |
download | gstreamer-plugins-base-94f0848cf2ca2262bcc8063ea74bddf55ff53849.tar.gz |
gl/overlaycompositor: handle ANY caps features gracefully
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gl/gstgloverlaycompositor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstgloverlaycompositor.c b/gst-libs/gst/gl/gstgloverlaycompositor.c index 05575aa8b..bb6dc16eb 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); |