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:
Vivia Nikolaidou 2022-06-09 16:33:24 +03:00 committed by Sebastian Dröge
parent 1c43a51520
commit 18cbb587ba

View file

@ -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 {