mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 11:30:59 +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) => {
|
gst::EventView::Caps(_caps) => {
|
||||||
// set caps on src pad
|
// set caps on src pad
|
||||||
let templ = element.class().pad_template("src").unwrap();
|
let templ = element.class().pad_template("src").unwrap();
|
||||||
let _ = self
|
let _ = self.src_pad.push_event(gst::event::Caps::new(templ.caps()));
|
||||||
.src_pad
|
|
||||||
.push_event(gst::event::Caps::new(&templ.caps()));
|
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
_ => pad.event_default(Some(element), event),
|
_ => pad.event_default(Some(element), event),
|
||||||
|
|
Loading…
Reference in a new issue