diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-04-25 15:41:22 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-04-25 15:48:55 +0300 |
commit | 15cf738616fac8390ff1bac144f6fac49148b47d (patch) | |
tree | d0b5b35c187d053cd49d0c0aa5bba8a149de4b5e /utils/togglerecord/examples | |
parent | 40765f7c53237e798565f9568caed7f4a4d6373c (diff) |
Update for Value trait refactoring
Diffstat (limited to 'utils/togglerecord/examples')
-rw-r--r-- | utils/togglerecord/examples/gtk_recording.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index 13e1ebaa..d3eef9a5 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -53,11 +53,11 @@ fn create_pipeline() -> ( glsinkbin.set_property("sink", >kglsink).unwrap(); let widget = gtkglsink.property("widget").unwrap(); - (glsinkbin, widget.get::<gtk::Widget>().unwrap().unwrap()) + (glsinkbin, widget.get::<gtk::Widget>().unwrap()) } else { let sink = gst::ElementFactory::make("gtksink", None).unwrap(); let widget = sink.property("widget").unwrap(); - (sink, widget.get::<gtk::Widget>().unwrap().unwrap()) + (sink, widget.get::<gtk::Widget>().unwrap()) }; let video_enc = gst::ElementFactory::make("x264enc", None).unwrap(); @@ -259,7 +259,7 @@ fn create_ui(app: >k::Application) { let recording = !togglerecord .property("record") .unwrap() - .get_some::<bool>() + .get::<bool>() .unwrap(); togglerecord.set_property("record", &recording).unwrap(); |