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/1008>
This commit is contained in:
Sebastian Dröge 2022-12-12 10:50:31 +02:00
parent b689a0825e
commit 71558bd086

View file

@ -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",
));
}
};