diff options
author | Matthew Waters <matthew@centricular.com> | 2018-09-27 13:30:35 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2018-10-04 14:28:35 +1000 |
commit | 1359d0995e7e44f7e4c6f96aab7799beb972f3d8 (patch) | |
tree | 71d0c2a8d59337ef939d10fd2bd444f3649e169f | |
parent | 0086dfcf7f87a009c1040086c2bf188c12b0f755 (diff) | |
download | gst-plugins-base-1359d0995e7e44f7e4c6f96aab7799beb972f3d8.tar.gz gst-plugins-base-1359d0995e7e44f7e4c6f96aab7799beb972f3d8.tar.xz |
gl/overlaycompositor: handle ANY caps features gracefully
-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); |