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

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-02-21 22:33:29 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-02-21 22:36:45 +0300
commitf08b65ece1e593fbc2301b1277aac6bed9b24a7b (patch)
tree215759f088f3a46cb61816035644e4efbb97b509 /video/gtk4
parent8aa5125d5b19f1b7ec6aa1e5a775dcd0b775c84c (diff)
gtk4: Don't unnecessarily set the sink to READY to retrieve the context
That's not needed and will cause the GL context messages to be not distributed inside the pipeline. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1099>
Diffstat (limited to 'video/gtk4')
-rw-r--r--video/gtk4/examples/gtksink.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/gtk4/examples/gtksink.rs b/video/gtk4/examples/gtksink.rs
index acaa82353..0f64c7fb6 100644
--- a/video/gtk4/examples/gtksink.rs
+++ b/video/gtk4/examples/gtksink.rs
@@ -24,8 +24,6 @@ fn create_ui(app: &gtk::Application) {
.build()
.unwrap();
- // Need to set state to Ready to get a GL context
- gtksink.set_state(gst::State::Ready).unwrap();
let paintable = gtksink.property::<gdk::Paintable>("paintable");
// TODO: future plans to provide a bin-like element that works with less setup