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')
-rw-r--r--tutorial/src/identity/imp.rs4
-rw-r--r--tutorial/src/progressbin/imp.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/tutorial/src/identity/imp.rs b/tutorial/src/identity/imp.rs
index 92d566291..7b26806cf 100644
--- a/tutorial/src/identity/imp.rs
+++ b/tutorial/src/identity/imp.rs
@@ -123,7 +123,7 @@ impl ObjectSubclass for Identity {
//
// Details about what each function is good for is next to each function definition
let templ = klass.pad_template("sink").unwrap();
- let sinkpad = gst::Pad::builder_with_template(&templ, Some("sink"))
+ let sinkpad = gst::Pad::builder_from_template(&templ)
.chain_function(|pad, parent, buffer| {
Identity::catch_panic_pad_function(
parent,
@@ -148,7 +148,7 @@ impl ObjectSubclass for Identity {
.build();
let templ = klass.pad_template("src").unwrap();
- let srcpad = gst::Pad::builder_with_template(&templ, Some("src"))
+ let srcpad = gst::Pad::builder_from_template(&templ)
.event_function(|pad, parent, event| {
Identity::catch_panic_pad_function(
parent,
diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs
index f0bdafff4..eee52691a 100644
--- a/tutorial/src/progressbin/imp.rs
+++ b/tutorial/src/progressbin/imp.rs
@@ -58,9 +58,9 @@ impl ObjectSubclass for ProgressBin {
//
// We do that and adding the pads inside glib::Object::constructed() later.
let templ = klass.pad_template("sink").unwrap();
- let sinkpad = gst::GhostPad::from_template(&templ, Some("sink"));
+ let sinkpad = gst::GhostPad::from_template(&templ);
let templ = klass.pad_template("src").unwrap();
- let srcpad = gst::GhostPad::from_template(&templ, Some("src"));
+ let srcpad = gst::GhostPad::from_template(&templ);
// Create the progressreport element.
let progress = gst::ElementFactory::make("progressreport")