Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants