diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-06-11 13:45:15 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-06-11 14:07:01 +0300 |
commit | e85799b9d6ba89e3f3e76a5d092bc7145121af03 (patch) | |
tree | fd7a55babaeee17f4db46bbf04585566cecf02fe /generic/threadshare/tests/pad.rs | |
parent | ed4fa7fde40506888947dadb5632b880fc7aaba6 (diff) |
use new constructor names
Diffstat (limited to 'generic/threadshare/tests/pad.rs')
-rw-r--r-- | generic/threadshare/tests/pad.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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), |