mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
glsyncmeta: only flush with a shared context
The wait code will flush for us for single context pipelines.
This commit is contained in:
parent
2aadd7eaf9
commit
11fb4fff80
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ _default_set_sync_gl (GstGLSyncMeta * sync_meta, GstGLContext * context)
|
|||
}
|
||||
sync_meta->data =
|
||||
(gpointer) gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
|
||||
gl->Flush ();
|
||||
|
||||
if (gst_gl_context_is_shared (context))
|
||||
/* if we only have a single context, the wait will flush for us */
|
||||
gl->Flush ();
|
||||
GST_LOG ("setting sync object %p", sync_meta->data);
|
||||
} else {
|
||||
gl->Finish ();
|
||||
|
|
Loading…
Reference in a new issue