diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-04-08 10:36:58 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2021-04-08 10:37:25 +0300 |
commit | 2bd4fc4728977e17447caf09af0ce4968be8060a (patch) | |
tree | a3ea98cd7ee0f142734b8f1a81a103695057b390 /utils | |
parent | 3dda2aebe939b47f360bbccff5c88ea085a32e4b (diff) |
examples: Update for gio::Application::run() API simplification
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/examples/gtk_fallbackswitch.rs | 4 | ||||
-rw-r--r-- | utils/togglerecord/examples/gtk_recording.rs | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs index c066729a1..59c253179 100644 --- a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs +++ b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs @@ -22,7 +22,6 @@ use gst::prelude::*; use gtk::prelude::*; use std::cell::RefCell; -use std::env; const MAIN_PIPELINE: &str = "videotestsrc is-live=true pattern=ball"; const FALLBACK_PIPELINE: &str = "videotestsrc is-live=true pattern=snow"; @@ -224,6 +223,5 @@ fn main() { let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE).unwrap(); app.connect_activate(create_ui); - let args = env::args().collect::<Vec<_>>(); - app.run(&args); + app.run(); } diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index 4585c7c15..648a64748 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -20,7 +20,6 @@ use gst::prelude::*; use gio::prelude::*; use gtk::prelude::*; use std::cell::RefCell; -use std::env; fn create_pipeline() -> ( gst::Pipeline, @@ -345,6 +344,5 @@ fn main() { let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE).unwrap(); app.connect_activate(create_ui); - let args = env::args().collect::<Vec<_>>(); - app.run(&args); + app.run(); } |