glsyncmeta: only flush with a shared context

The wait code will flush for us for single context pipelines.
This commit is contained in:
Matthew Waters 2016-01-07 14:08:39 +11:00
parent 2aadd7eaf9
commit 11fb4fff80

View file

@ -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 {