gst: Fix synchronization

It does not make sense to sync and wait in the
same context, that is just a no-op. The intention
of this code clearly was to sync in the gst
context, and wait in the gdk one.

That also matches what the gtk sink implementation
in gstreamer does.
This commit is contained in:
Matthias Clasen 2023-01-30 11:56:50 -05:00
parent c43e1f3d0a
commit 55f7f7d0ee

View File

@ -292,7 +292,7 @@ gtk_gst_sink_texture_from_buffer (GtkGstSink *self,
sync_meta = gst_buffer_get_gl_sync_meta (buffer);
if (sync_meta) {
gst_gl_sync_meta_set_sync_point (sync_meta, self->gst_context);
gst_gl_sync_meta_wait (sync_meta, self->gst_context);
gst_gl_sync_meta_wait (sync_meta, self->gst_app_context);
}
texture = gdk_gl_texture_new (self->gdk_context,