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/src/encrypter.rs | |
parent | ed4fa7fde40506888947dadb5632b880fc7aaba6 (diff) |
use new constructor names
Diffstat (limited to 'generic/sodium/src/encrypter.rs')
-rw-r--r-- | generic/sodium/src/encrypter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |