mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-02 15:28:42 +00:00
textwrap: set PROXY_CAPS flag on pads
This commit is contained in:
parent
7701850586
commit
ea74d87510
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue