mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-09 18:55:27 +00:00
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:
parent
b689a0825e
commit
71558bd086
1 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue