diff --git a/examples/src/bin/playbin.rs b/examples/src/bin/playbin.rs index 394461ea6..b3d06490b 100644 --- a/examples/src/bin/playbin.rs +++ b/examples/src/bin/playbin.rs @@ -77,7 +77,10 @@ fn example_main() { // application is via properties, signals or action signals (or custom messages, events, queries). // So what the following code does, is essentially asking playbin to tell us its already // internally stored tag list for this stream index. - let tags = playbin.emit("get-audio-tags", &[&idx]).unwrap().unwrap(); + let tags = playbin + .emit_by_name("get-audio-tags", &[&idx]) + .unwrap() + .unwrap(); let tags = tags.get::().expect("tags").unwrap(); if let Some(artist) = tags.get::() { diff --git a/examples/src/bin/rtpfecclient.rs b/examples/src/bin/rtpfecclient.rs index f825d58cc..8312beb4e 100644 --- a/examples/src/bin/rtpfecclient.rs +++ b/examples/src/bin/rtpfecclient.rs @@ -83,7 +83,7 @@ fn connect_rtpbin_srcpad(src_pad: &gst::Pad, sink: &gst::Element) -> Result<(), fn make_fec_decoder(rtpbin: &gst::Element, sess_id: u32) -> Result { let fecdec = make_element("rtpulpfecdec", None)?; let internal_storage = rtpbin - .emit("get-internal-storage", &[&sess_id]) + .emit_by_name("get-internal-storage", &[&sess_id]) .unwrap() .unwrap() .get::() diff --git a/tutorials/src/bin/basic-tutorial-5.rs b/tutorials/src/bin/basic-tutorial-5.rs index 31b985a2b..1decd3343 100644 --- a/tutorials/src/bin/basic-tutorial-5.rs +++ b/tutorials/src/bin/basic-tutorial-5.rs @@ -44,7 +44,7 @@ mod tutorial5 { match playbin.get_property(propname).unwrap().get() { Ok(Some(x)) => { for i in 0..x { - let tags = playbin.emit(signame, &[&i]).unwrap().unwrap(); + let tags = playbin.emit_by_name(signame, &[&i]).unwrap().unwrap(); if let Ok(Some(tags)) = tags.get::() { textbuf.insert_at_cursor(&format!("{} stream {}:\n ", stype, i)); diff --git a/tutorials/src/bin/playback-tutorial-4.rs b/tutorials/src/bin/playback-tutorial-4.rs index ecb9107e3..7a2eea901 100644 --- a/tutorials/src/bin/playback-tutorial-4.rs +++ b/tutorials/src/bin/playback-tutorial-4.rs @@ -31,7 +31,7 @@ fn tutorial_main() -> Result<(), Error> { .set_by_nick("download") .build() .unwrap(); - pipeline.set_property_generic("flags", &flags).unwrap(); + pipeline.set_property_with_value("flags", &flags).unwrap(); // Uncomment this line to limit the amount of downloaded data. // pipeline.set_property("ring-buffer-max-size", &4_000_000u64)?;