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
path: root/video
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-22 15:24:49 +0300
commite100506194ce33569877de2d95a407c2cf9924ad (patch)
tree670cfc8a6e62947ad039b42c9c6e01a2c61aa1fa /video
parent5c21b10841dddddda4c6b56c24e57fc02ea9e5ef (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/1101>
Diffstat (limited to 'video')
-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 867dc1eaf..cd5bdb113 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