From: Matthias Clasen Date: Mon, 13 Feb 2023 00:29:04 +0000 (-0500) Subject: gstreamer: Fix gl context use X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~7^2~2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7430bd7780ed6b33d9bbc4d78ec241b84c5c65c7;p=gtk4.git gstreamer: Fix gl context use We were not activating the context in which we want to wait for the fence. This caused a stream of critical warnings. Fixes: #5586 --- diff --git a/modules/media/gtkgstsink.c b/modules/media/gtkgstsink.c index 182283de64..0e3e29b9f7 100644 --- a/modules/media/gtkgstsink.c +++ b/modules/media/gtkgstsink.c @@ -292,7 +292,9 @@ 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_context_activate (self->gst_gdk_context, TRUE); gst_gl_sync_meta_wait (sync_meta, self->gst_gdk_context); + gst_gl_context_activate (self->gst_gdk_context, FALSE); } texture = gdk_gl_texture_new (self->gdk_context,