mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
textahead: PadTemplate::caps()
returns a caps reference now
This commit is contained in:
parent
2f16b5dd3e
commit
ce50a3003c
1 changed files with 1 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue