From 42feed5441f66f4303f5a46551d9be9609f54b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 25 Oct 2021 12:47:07 +0300 Subject: [PATCH] examples: Remove unnecessary `MainContext::push_thread_default()` --- examples/src/bin/glib-futures.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/src/bin/glib-futures.rs b/examples/src/bin/glib-futures.rs index 7163598d8..e936077e3 100644 --- a/examples/src/bin/glib-futures.rs +++ b/examples/src/bin/glib-futures.rs @@ -35,7 +35,6 @@ fn example_main() { // Get the default main context and make it also the thread default, then create // a main loop for it let ctx = glib::MainContext::default(); - ctx.push_thread_default(); let loop_ = glib::MainLoop::new(Some(&ctx), false); // Read the pipeline to launch from the commandline, using the launch syntax. @@ -61,8 +60,6 @@ fn example_main() { pipeline .set_state(gst::State::Null) .expect("Unable to set the pipeline to the `Null` state"); - - ctx.pop_thread_default(); } fn main() {