Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-04-25 15:41:22 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-04-25 15:48:55 +0300
commit15cf738616fac8390ff1bac144f6fac49148b47d (patch)
treed0b5b35c187d053cd49d0c0aa5bba8a149de4b5e /utils/togglerecord/examples
parent40765f7c53237e798565f9568caed7f4a4d6373c (diff)
Update for Value trait refactoring
Diffstat (limited to 'utils/togglerecord/examples')
-rw-r--r--utils/togglerecord/examples/gtk_recording.rs6
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", &gtkglsink).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: &gtk::Application) {
let recording = !togglerecord
.property("record")
.unwrap()
- .get_some::<bool>()
+ .get::<bool>()
.unwrap();
togglerecord.set_property("record", &recording).unwrap();