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 'tutorial/src/identity.rs')
-rw-r--r--tutorial/src/identity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/src/identity.rs b/tutorial/src/identity.rs
index 1395d4576..2616f1fe6 100644
--- a/tutorial/src/identity.rs
+++ b/tutorial/src/identity.rs
@@ -175,9 +175,9 @@ impl ObjectSubclass for Identity {
// Create our two pads from the templates that were registered with
// the class
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"));
// And then set all our pad functions for handling anything that happens
// on these pads