textwrap: set PROXY_CAPS flag on pads

This commit is contained in:
Mathieu Duponchelle 2020-04-17 21:53:50 +02:00
parent 7701850586
commit ea74d87510

View file

@ -283,8 +283,10 @@ impl ObjectSubclass for TextWrap {
fn new_with_class(klass: &subclass::simple::ClassStruct<Self>) -> Self {
let templ = klass.get_pad_template("sink").unwrap();
let sinkpad = gst::Pad::new_from_template(&templ, Some("sink"));
sinkpad.set_pad_flags(gst::PadFlags::PROXY_CAPS);
let templ = klass.get_pad_template("src").unwrap();
let srcpad = gst::Pad::new_from_template(&templ, Some("src"));
srcpad.set_pad_flags(gst::PadFlags::PROXY_CAPS);
srcpad.use_fixed_caps();
sinkpad.use_fixed_caps();