diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-12-12 11:50:31 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-12-12 11:51:15 +0300 |
commit | a077ecba8548b326b876d72a3f236ccc0bb9c528 (patch) | |
tree | 97bffb84dd4c4a7f596017fb212cc77bfd276ab8 /video | |
parent | 37b0dab0e8bdf39dd82375dd02174ca57effd268 (diff) |
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1001>
Diffstat (limited to 'video')
-rw-r--r-- | video/gtk4/src/sink/imp.rs | 8 |
1 files 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", )); } }; |