Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-12-12 11:50:31 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-12-12 11:51:15 +0300
commita077ecba8548b326b876d72a3f236ccc0bb9c528 (patch)
tree97bffb84dd4c4a7f596017fb212cc77bfd276ab8 /video
parent37b0dab0e8bdf39dd82375dd02174ca57effd268 (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.rs8
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",
));
}
};