diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2022-06-09 16:33:24 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-12 21:29:07 +0300 |
commit | 18cbb587ba5ed013e0f246dba63bc2f8528ecc50 (patch) | |
tree | 5880c6f563247b84cfc8806423b34b8dd74e2f8f /net/ndi | |
parent | 1c43a515205b72fbc6bc8824af013870a157b93f (diff) |
ndisrcdemux: Add no-more-pads signal
Emit no-more-pads if we are adding the second pad of the element.
Diffstat (limited to 'net/ndi')
-rw-r--r-- | net/ndi/src/ndisrcdemux/imp.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ndi/src/ndisrcdemux/imp.rs b/net/ndi/src/ndisrcdemux/imp.rs index fb5f70de..4066b6fa 100644 --- a/net/ndi/src/ndisrcdemux/imp.rs +++ b/net/ndi/src/ndisrcdemux/imp.rs @@ -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 { |