tutorials: Change from set_property_with_value() to set_property_from_value()

This commit is contained in:
Sebastian Dröge 2021-02-23 12:11:48 +02:00
parent 06e0555555
commit efb249f7b9

View file

@ -31,7 +31,7 @@ fn tutorial_main() -> Result<(), Error> {
.set_by_nick("download") .set_by_nick("download")
.build() .build()
.unwrap(); .unwrap();
pipeline.set_property_with_value("flags", &flags).unwrap(); pipeline.set_property_from_value("flags", &flags).unwrap();
// Uncomment this line to limit the amount of downloaded data. // Uncomment this line to limit the amount of downloaded data.
// pipeline.set_property("ring-buffer-max-size", &4_000_000u64)?; // pipeline.set_property("ring-buffer-max-size", &4_000_000u64)?;