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/sodium | |
parent | ed4fa7fde40506888947dadb5632b880fc7aaba6 (diff) |
use new constructor names
Diffstat (limited to 'generic/sodium')
-rw-r--r-- | generic/sodium/src/decrypter.rs | 4 | ||||
-rw-r--r-- | generic/sodium/src/encrypter.rs | 4 | ||||
-rw-r--r-- | generic/sodium/tests/encrypter.rs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/generic/sodium/src/decrypter.rs b/generic/sodium/src/decrypter.rs index 39891ee17..b6eae734d 100644 --- a/generic/sodium/src/decrypter.rs +++ b/generic/sodium/src/decrypter.rs @@ -596,9 +596,9 @@ impl ObjectSubclass for Decrypter { fn new_with_class(klass: &subclass::simple::ClassStruct<Self>) -> Self { let templ = klass.get_pad_template("sink").unwrap(); - let sinkpad = gst::Pad::new_from_template(&templ, Some("sink")); + let sinkpad = gst::Pad::from_template(&templ, Some("sink")); let templ = klass.get_pad_template("src").unwrap(); - let srcpad = gst::Pad::new_from_template(&templ, Some("src")); + let srcpad = gst::Pad::from_template(&templ, Some("src")); Decrypter::set_pad_functions(&sinkpad, &srcpad); let props = Mutex::new(Props::default()); diff --git a/generic/sodium/src/encrypter.rs b/generic/sodium/src/encrypter.rs index 60a6e01e8..431316e88 100644 --- a/generic/sodium/src/encrypter.rs +++ b/generic/sodium/src/encrypter.rs @@ -425,9 +425,9 @@ impl ObjectSubclass for Encrypter { fn new_with_class(klass: &subclass::simple::ClassStruct<Self>) -> Self { let templ = klass.get_pad_template("sink").unwrap(); - let sinkpad = gst::Pad::new_from_template(&templ, Some("sink")); + let sinkpad = gst::Pad::from_template(&templ, Some("sink")); let templ = klass.get_pad_template("src").unwrap(); - let srcpad = gst::Pad::new_from_template(&templ, Some("src")); + let srcpad = gst::Pad::from_template(&templ, Some("src")); Encrypter::set_pad_functions(&sinkpad, &srcpad); let props = Mutex::new(Props::default()); diff --git a/generic/sodium/tests/encrypter.rs b/generic/sodium/tests/encrypter.rs index e2f6dc83a..b7b92fe2d 100644 --- a/generic/sodium/tests/encrypter.rs +++ b/generic/sodium/tests/encrypter.rs @@ -83,7 +83,7 @@ fn encrypt_file() { enc.set_property("block-size", &1024u32) .expect("failed to set property"); - let mut h = gst_check::Harness::new_with_element(&enc, None, None); + let mut h = gst_check::Harness::with_element(&enc, None, None); h.add_element_src_pad(&enc.get_static_pad("src").expect("failed to get src pad")); h.add_element_sink_pad(&enc.get_static_pad("sink").expect("failed to get src pad")); h.set_src_caps_str("application/x-sodium-encrypted"); |