Skip to content

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


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