From a077ecba8548b326b876d72a3f236ccc0bb9c528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 12 Dec 2022 10:50:31 +0200 Subject: [PATCH] gtk4: Deactivate application GL context again after `fill_info()` It does not need to be activate anymore, and keeping it active can cause problems. Part-of: --- video/gtk4/src/sink/imp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs index 992180f3..92a7dbaa 100644 --- a/video/gtk4/src/sink/imp.rs +++ b/video/gtk4/src/sink/imp.rs @@ -648,17 +648,17 @@ impl PaintableSink { match app_ctx_guard.as_ref().unwrap().fill_info() { Ok(_) => { - match app_ctx_guard.as_ref().unwrap().activate(true) { + match app_ctx_guard.as_ref().unwrap().activate(false) { Ok(_) => gst::info!( CAT, imp: self, - "Successfully activated GL Context after fill_info" + "Successfully deactivated GL Context after fill_info" ), Err(_) => { - gst::error!(CAT, imp: self, "Failed to activate GL context",); + gst::error!(CAT, imp: self, "Failed to deactivate GL context",); return Err(glib::Error::new( gst::ResourceError::Failed, - "Failed to activate GL context after fill_info", + "Failed to deactivate GL context after fill_info", )); } };