mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +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
472970324c
commit
6667408cb5
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 =
|
sync_meta->data =
|
||||||
(gpointer) gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
|
(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);
|
GST_LOG ("setting sync object %p", sync_meta->data);
|
||||||
} else {
|
} else {
|
||||||
gl->Finish ();
|
gl->Finish ();
|
||||||
|
|
Loading…
Reference in a new issue