diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-02-21 22:33:29 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-02-22 15:22:06 +0300 |
commit | 384a9d05f093c43549e6367fcc9c62baca0b56da (patch) | |
tree | bb0bfcc072b1bc03586a786bca8db6e89e98436f /video | |
parent | eda0d9abe1ea2412f8a4c58b3ea6cebe5a41e42a (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.rs | 2 |
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: >k::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 |