forked from mirrors/gstreamer-rs
examples: Remove unnecessary MainContext::push_thread_default()
This commit is contained in:
parent
c2e43f86a5
commit
42feed5441
1 changed files with 0 additions and 3 deletions
|
@ -35,7 +35,6 @@ fn example_main() {
|
||||||
// Get the default main context and make it also the thread default, then create
|
// Get the default main context and make it also the thread default, then create
|
||||||
// a main loop for it
|
// a main loop for it
|
||||||
let ctx = glib::MainContext::default();
|
let ctx = glib::MainContext::default();
|
||||||
ctx.push_thread_default();
|
|
||||||
let loop_ = glib::MainLoop::new(Some(&ctx), false);
|
let loop_ = glib::MainLoop::new(Some(&ctx), false);
|
||||||
|
|
||||||
// Read the pipeline to launch from the commandline, using the launch syntax.
|
// Read the pipeline to launch from the commandline, using the launch syntax.
|
||||||
|
@ -61,8 +60,6 @@ fn example_main() {
|
||||||
pipeline
|
pipeline
|
||||||
.set_state(gst::State::Null)
|
.set_state(gst::State::Null)
|
||||||
.expect("Unable to set the pipeline to the `Null` state");
|
.expect("Unable to set the pipeline to the `Null` state");
|
||||||
|
|
||||||
ctx.pop_thread_default();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue