Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'generic/threadshare/tests')
-rw-r--r--generic/threadshare/tests/inputselector.rs4
-rw-r--r--generic/threadshare/tests/pad.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/generic/threadshare/tests/inputselector.rs b/generic/threadshare/tests/inputselector.rs
index 9401abda4..cc7489f37 100644
--- a/generic/threadshare/tests/inputselector.rs
+++ b/generic/threadshare/tests/inputselector.rs
@@ -34,8 +34,8 @@ fn test_active_pad() {
let is = gst::ElementFactory::make("ts-input-selector", None).unwrap();
- let mut h1 = gst_check::Harness::new_with_element(&is, Some("sink_%u"), Some("src"));
- let mut h2 = gst_check::Harness::new_with_element(&is, Some("sink_%u"), None);
+ let mut h1 = gst_check::Harness::with_element(&is, Some("sink_%u"), Some("src"));
+ let mut h2 = gst_check::Harness::with_element(&is, Some("sink_%u"), None);
let active_pad = is
.get_property("active-pad")
diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs
index 0cea01265..182db3184 100644
--- a/generic/threadshare/tests/pad.rs
+++ b/generic/threadshare/tests/pad.rs
@@ -325,7 +325,7 @@ impl ObjectSubclass for ElementSrcTest {
fn new_with_class(klass: &glib::subclass::simple::ClassStruct<Self>) -> Self {
ElementSrcTest {
src_pad: PadSrc::new(
- gst::Pad::new_from_template(&klass.get_pad_template("src").unwrap(), Some("src")),
+ gst::Pad::from_template(&klass.get_pad_template("src").unwrap(), Some("src")),
PadSrcTestHandler,
),
task: Task::default(),
@@ -639,7 +639,7 @@ impl ObjectSubclass for ElementSinkTest {
fn new_with_class(klass: &glib::subclass::simple::ClassStruct<Self>) -> Self {
ElementSinkTest {
sink_pad: PadSink::new(
- gst::Pad::new_from_template(&klass.get_pad_template("sink").unwrap(), Some("sink")),
+ gst::Pad::from_template(&klass.get_pad_template("sink").unwrap(), Some("sink")),
PadSinkTestHandler,
),
flushing: AtomicBool::new(true),