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

audio_merge: Make audio channel mismatch message verbose #631

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

Conversation

kierank
Copy link
Contributor

@kierank kierank commented Oct 1, 2019

It's not an error, there are use-cases for this

It's not an error, there are use-cases for this
@@ -356,7 +356,7 @@ static void upipe_audio_merge_produce_output(struct upipe *upipe, struct upump *
uint8_t output_channels = 0;
UBASE_ERROR(upipe, uref_sound_flow_get_channels(upipe_audio_merge->flow_def, &output_channels));
if (input_channels != output_channels)
upipe_err_va(upipe, "total input channels (%"PRIu64") != output flow def (%d), some will be skipped or blanked!",
upipe_verbose_va(upipe, "total input channels (%"PRIu64") != output flow def (%d), some will be skipped or blanked!",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't you think it would be better to print it once in set_flow_def ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually the check is wrong to begin with, I think the intention is to make sure the sum(uref_channels) = sum(flow_def_channels)

@JDarnley
Copy link
Contributor

JDarnley commented Dec 5, 2019

Since I am working on the pipe I took a quick look at this. AFAICS if you do it in set_flow_def for the subpipes it will print one message for each input until the sum equals the output flow_def, then nothing when equal, then again when greater.

Maybe it is supposed to check that the input urefs match what the input flow_defs say and print a message when they are different indicating some error.

I'm not sure myself so I have just silenced it while I am testing.

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