summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2018-09-27 13:30:35 +1000
committerMatthew Waters <matthew@centricular.com>2018-11-08 19:40:18 +1100
commit94f0848cf2ca2262bcc8063ea74bddf55ff53849 (patch)
treea90dfdae5e38c213fa2370c4d1ba653739ec908a /gst-libs
parenta4bc7f072c1c8639b5ca3080d96a19a97142a4a5 (diff)
downloadgstreamer-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.c5
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);