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>2023-02-21 22:33:29 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-02-22 15:22:06 +0300
commit384a9d05f093c43549e6367fcc9c62baca0b56da (patch)
treebb0bfcc072b1bc03586a786bca8db6e89e98436f /video
parenteda0d9abe1ea2412f8a4c58b3ea6cebe5a41e42a (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/1100>
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 acaa8235..0f64c7fb 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