Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/text
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2020-04-17 22:53:50 +0300
committerMathieu Duponchelle <mathieu@centricular.com>2020-04-17 22:53:50 +0300
commitea74d875106b9ffab8eeff27e98f8372b921a02a (patch)
treeede67c548ce7fb14bb6e24bf43b56b75277396ca /text
parent7701850586d1f0004afd6c3b40c2452171f88cc1 (diff)
textwrap: set PROXY_CAPS flag on pads
Diffstat (limited to 'text')
-rw-r--r--text/wrap/src/gsttextwrap.rs2
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();