diff options
author | François Laignel <fengalin@free.fr> | 2021-04-20 15:58:11 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-20 19:19:58 +0300 |
commit | 67c5871957a583c5817156891cb6586a54e6d5f4 (patch) | |
tree | 3d9aff3447876b8d17df180b8a0e9b9594f90b5d /utils/togglerecord/examples | |
parent | 27bc5c89cad7dfec9cc12c6c87beca76a4a0b139 (diff) |
fix-getters-calls 0.3.0 pass
Diffstat (limited to 'utils/togglerecord/examples')
-rw-r--r-- | utils/togglerecord/examples/gtk_recording.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index bd322c8a..13e1ebaa 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -52,11 +52,11 @@ fn create_pipeline() -> ( let glsinkbin = gst::ElementFactory::make("glsinkbin", None).unwrap(); glsinkbin.set_property("sink", >kglsink).unwrap(); - let widget = gtkglsink.get_property("widget").unwrap(); + let widget = gtkglsink.property("widget").unwrap(); (glsinkbin, widget.get::<gtk::Widget>().unwrap().unwrap()) } else { let sink = gst::ElementFactory::make("gtksink", None).unwrap(); - let widget = sink.get_property("widget").unwrap(); + let widget = sink.property("widget").unwrap(); (sink, widget.get::<gtk::Widget>().unwrap().unwrap()) }; @@ -185,8 +185,8 @@ fn create_pipeline() -> ( ( pipeline, - video_queue2.get_static_pad("sink").unwrap(), - audio_queue2.get_static_pad("sink").unwrap(), + video_queue2.static_pad("sink").unwrap(), + audio_queue2.static_pad("sink").unwrap(), togglerecord, video_sink, video_widget, @@ -240,7 +240,7 @@ fn create_ui(app: >k::Application) { position_label.set_text(&format!("Position: {:.1}", position)); let recording_duration = togglerecord - .get_static_pad("src") + .static_pad("src") .unwrap() .query_position::<gst::ClockTime>() .unwrap_or_else(|| 0.into()); @@ -257,7 +257,7 @@ fn create_ui(app: >k::Application) { }; let recording = !togglerecord - .get_property("record") + .property("record") .unwrap() .get_some::<bool>() .unwrap(); |