From ea74d875106b9ffab8eeff27e98f8372b921a02a Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 17 Apr 2020 21:53:50 +0200 Subject: [PATCH] textwrap: set PROXY_CAPS flag on pads --- text/wrap/src/gsttextwrap.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/text/wrap/src/gsttextwrap.rs b/text/wrap/src/gsttextwrap.rs index 7644259d..4afa6a06 100644 --- a/text/wrap/src/gsttextwrap.rs +++ b/text/wrap/src/gsttextwrap.rs @@ -283,8 +283,10 @@ impl ObjectSubclass for TextWrap { fn new_with_class(klass: &subclass::simple::ClassStruct) -> 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();