textahead: PadTemplate::caps() returns a caps reference now

This commit is contained in:
Sebastian Dröge 2022-05-08 12:05:54 +03:00
parent 2f16b5dd3e
commit ce50a3003c

View file

@ -308,9 +308,7 @@ impl TextAhead {
gst::EventView::Caps(_caps) => {
// set caps on src pad
let templ = element.class().pad_template("src").unwrap();
let _ = self
.src_pad
.push_event(gst::event::Caps::new(&templ.caps()));
let _ = self.src_pad.push_event(gst::event::Caps::new(templ.caps()));
true
}
_ => pad.event_default(Some(element), event),