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 'text/ahead/src/textahead/imp.rs')
-rw-r--r--text/ahead/src/textahead/imp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/text/ahead/src/textahead/imp.rs b/text/ahead/src/textahead/imp.rs
index 6af01de99..90c937eaa 100644
--- a/text/ahead/src/textahead/imp.rs
+++ b/text/ahead/src/textahead/imp.rs
@@ -78,7 +78,7 @@ impl ObjectSubclass for TextAhead {
fn with_class(klass: &Self::Class) -> Self {
let templ = klass.pad_template("sink").unwrap();
- let sink_pad = gst::Pad::builder_with_template(&templ, Some("sink"))
+ let sink_pad = gst::Pad::builder_from_template(&templ)
.chain_function(|pad, parent, buffer| {
TextAhead::catch_panic_pad_function(
parent,
@@ -96,7 +96,7 @@ impl ObjectSubclass for TextAhead {
.build();
let templ = klass.pad_template("src").unwrap();
- let src_pad = gst::Pad::builder_with_template(&templ, Some("src")).build();
+ let src_pad = gst::Pad::from_template(&templ);
Self {
sink_pad,