diff options
Diffstat (limited to 'generic/threadshare/tests/pad.rs')
-rw-r--r-- | generic/threadshare/tests/pad.rs | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index e1ca62f32..e293a2d3f 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -892,9 +892,12 @@ fn src_tsqueue_sink_nominal() { let name = "src_tsqueue_sink"; - let ts_queue = gst::ElementFactory::make("ts-queue", Some("ts-queue")).unwrap(); - ts_queue.set_property("context", format!("{}_queue", name)); - ts_queue.set_property("context-wait", THROTTLING_DURATION.as_millis() as u32); + let ts_queue = gst::ElementFactory::make("ts-queue") + .name("ts-queue") + .property("context", format!("{}_queue", name)) + .property("context-wait", THROTTLING_DURATION.as_millis() as u32) + .build() + .unwrap(); let (pipeline, src_element, _sink_element, receiver) = setup(name, Some(ts_queue), None); @@ -907,7 +910,10 @@ fn src_queue_sink_nominal() { let name = "src_queue_sink"; - let queue = gst::ElementFactory::make("queue", Some("queue")).unwrap(); + let queue = gst::ElementFactory::make("queue") + .name("queue") + .build() + .unwrap(); let (pipeline, src_element, _sink_element, receiver) = setup(name, Some(queue), None); nominal_scenario(name, pipeline, src_element, receiver); @@ -919,13 +925,19 @@ fn src_tsproxy_sink_nominal() { let name = "src_tsproxy_sink"; - let ts_proxy_sink = gst::ElementFactory::make("ts-proxysink", Some("ts-proxysink")).unwrap(); - ts_proxy_sink.set_property("proxy-context", format!("{}_proxy_context", name)); + let ts_proxy_sink = gst::ElementFactory::make("ts-proxysink") + .name("ts-proxysink") + .property("proxy-context", format!("{}_proxy_context", name)) + .build() + .unwrap(); - let ts_proxy_src = gst::ElementFactory::make("ts-proxysrc", Some("ts-proxysrc")).unwrap(); - ts_proxy_src.set_property("proxy-context", format!("{}_proxy_context", name)); - ts_proxy_src.set_property("context", format!("{}_context", name)); - ts_proxy_src.set_property("context-wait", THROTTLING_DURATION.as_millis() as u32); + let ts_proxy_src = gst::ElementFactory::make("ts-proxysrc") + .name("ts-proxysrc") + .property("proxy-context", format!("{}_proxy_context", name)) + .property("context", format!("{}_context", name)) + .property("context-wait", THROTTLING_DURATION.as_millis() as u32) + .build() + .unwrap(); let (pipeline, src_element, _sink_element, receiver) = setup(name, Some(ts_proxy_sink), Some(ts_proxy_src)); |