cdg: Update test for child proxy property API changes

This commit is contained in:
Sebastian Dröge 2021-11-20 10:47:02 +02:00
parent 5285fab8b3
commit 288acaa7cc

View file

@ -39,13 +39,9 @@ fn test_cdgdec() {
filesrc.set_property("location", input_path.to_str().unwrap());
{
let child_proxy = filesrc.dynamic_cast_ref::<gst::ChildProxy>().unwrap();
child_proxy
.set_child_property("real-filesrc::num-buffers", &1)
.expect("failed to set 'num-buffers' property");
child_proxy.set_child_property("real-filesrc::num-buffers", 1);
let blocksize: u32 = 24; // One CDG instruction
child_proxy
.set_child_property("real-filesrc::blocksize", &blocksize)
.expect("failed to set 'blocksize' property");
child_proxy.set_child_property("real-filesrc::blocksize", blocksize);
}
let parse = gst::ElementFactory::make("cdgparse", None).unwrap();