diff options
Diffstat (limited to 'utils/togglerecord/examples/gtk_recording.rs')
-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 13e1ebaa3..d3eef9a5b 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(); |