diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2020-04-17 22:53:50 +0300 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2020-04-17 22:53:50 +0300 |
commit | ea74d875106b9ffab8eeff27e98f8372b921a02a (patch) | |
tree | ede67c548ce7fb14bb6e24bf43b56b75277396ca /text | |
parent | 7701850586d1f0004afd6c3b40c2452171f88cc1 (diff) |
textwrap: set PROXY_CAPS flag on pads
Diffstat (limited to 'text')
-rw-r--r-- | text/wrap/src/gsttextwrap.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/text/wrap/src/gsttextwrap.rs b/text/wrap/src/gsttextwrap.rs index 7644259d5..4afa6a06e 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>) -> 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(); |