diff options
Diffstat (limited to 'text/json/src/jsongstenc/imp.rs')
-rw-r--r-- | text/json/src/jsongstenc/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/text/json/src/jsongstenc/imp.rs b/text/json/src/jsongstenc/imp.rs index 84b81e6c5..42e870215 100644 --- a/text/json/src/jsongstenc/imp.rs +++ b/text/json/src/jsongstenc/imp.rs @@ -183,7 +183,7 @@ impl ObjectSubclass for JsonGstEnc { fn with_class(klass: &Self::Class) -> Self { 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| { JsonGstEnc::catch_panic_pad_function( parent, @@ -201,7 +201,7 @@ impl ObjectSubclass for JsonGstEnc { .build(); let templ = klass.pad_template("src").unwrap(); - let srcpad = gst::Pad::builder_with_template(&templ, Some("src")).build(); + let srcpad = gst::Pad::from_template(&templ); Self { srcpad, |