gl/overlaycompositor: handle ANY caps features gracefully

This commit is contained in:
Matthew Waters 2018-09-27 13:30:35 +10:00
parent 0086dfcf7f
commit 1359d0995e

View file

@ -639,6 +639,7 @@ gst_gl_overlay_compositor_add_caps (GstCaps * caps)
for (i = 0; i < gst_caps_get_size (composition_caps); i++) { for (i = 0; i < gst_caps_get_size (composition_caps); i++) {
GstCapsFeatures *f = gst_caps_get_features (composition_caps, i); GstCapsFeatures *f = gst_caps_get_features (composition_caps, i);
if (!gst_caps_features_is_any (f))
gst_caps_features_add (f, gst_caps_features_add (f,
GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
} }