mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 21:05:15 +00:00
ndisrcdemux: Add no-more-pads signal
Emit no-more-pads if we are adding the second pad of the element.
This commit is contained in:
parent
1c43a51520
commit
18cbb587ba
1 changed files with 4 additions and 0 deletions
|
@ -280,6 +280,10 @@ impl NdiSrcDemux {
|
|||
|
||||
if add_pad {
|
||||
element.add_pad(&srcpad).unwrap();
|
||||
if element.num_src_pads() == 2 {
|
||||
element.no_more_pads();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
for ev in events {
|
||||
|
|
Loading…
Reference in a new issue