diff options
Diffstat (limited to 'video/closedcaption/src/cea608tocea708/imp.rs')
-rw-r--r-- | video/closedcaption/src/cea608tocea708/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/closedcaption/src/cea608tocea708/imp.rs b/video/closedcaption/src/cea608tocea708/imp.rs index 2a53c7cbb..bed384630 100644 --- a/video/closedcaption/src/cea608tocea708/imp.rs +++ b/video/closedcaption/src/cea608tocea708/imp.rs @@ -721,7 +721,7 @@ impl ObjectSubclass for Cea608ToCea708 { 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| { Cea608ToCea708::catch_panic_pad_function( parent, @@ -740,7 +740,7 @@ impl ObjectSubclass for Cea608ToCea708 { .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) .flags(gst::PadFlags::FIXED_CAPS) .build(); |