diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgloverlaycompositor.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgloverlaycompositor.c index 73bb31b51e..cc1111e7c5 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgloverlaycompositor.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgloverlaycompositor.c @@ -665,6 +665,7 @@ gst_gl_overlay_compositor_upload_overlays (GstGLOverlayCompositor * compositor, GstVideoOverlayComposition *composition = NULL; guint num_overlays, i; GList *l = compositor->overlays; + GstGLSyncMeta *sync_meta; GST_DEBUG ("GstVideoOverlayCompositionMeta found."); @@ -689,6 +690,11 @@ gst_gl_overlay_compositor_upload_overlays (GstGLOverlayCompositor * compositor, } } + sync_meta = gst_buffer_get_gl_sync_meta (buf); + if (sync_meta) { + gst_gl_sync_meta_set_sync_point (sync_meta, compositor->context); + } + /* remove old overlays from list */ while (l != NULL) { GList *next = l->next;