diff --git a/gst-libs/gst/gl/gstglsyncmeta.c b/gst-libs/gst/gl/gstglsyncmeta.c index 23806aa514..f680353fb0 100644 --- a/gst-libs/gst/gl/gstglsyncmeta.c +++ b/gst-libs/gst/gl/gstglsyncmeta.c @@ -69,9 +69,11 @@ _set_sync_point (GstGLContext * context, GstGLSyncMeta * sync_meta) gl->DeleteSync (sync_meta->glsync); } sync_meta->glsync = gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0); + gl->Flush (); GST_LOG ("setting sync object %p", sync_meta->glsync); + } else { + gl->Finish (); } - gl->Flush (); } void