Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndisrcdemux: Add no-more-pads signal #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vivia
Copy link

@vivia vivia commented Jun 9, 2022

Emit no-more-pads if we are adding the second pad of the element.

Emit no-more-pads if we are adding the second pad of the element.
@sdroege
Copy link
Contributor

sdroege commented Jun 9, 2022

CC @samuvlad @pnieto

@@ -276,6 +276,10 @@ impl NdiSrcDemux {

if add_pad {
element.add_pad(&srcpad).unwrap();
if element.num_src_pads() == 2 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go via let no_more_pads = add_pad && state.video_pad.is_some() && state.audio_pad.is_some() but seems fine to me otherwise

@sdroege
Copy link
Contributor

sdroege commented Sep 6, 2022

@samuvlad @pnieto Can we get this merged?

@sdroege
Copy link
Contributor

sdroege commented Oct 12, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants