mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +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,6 +50,9 @@ _default_set_sync_gl (GstGLSyncMeta * sync_meta, GstGLContext * context)
|
|||
}
|
||||
sync_meta->data =
|
||||
(gpointer) gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue