topology: don't allow to mix verbose level and output to stdout

Fixes: https://github.com/alsa-project/alsa-utils/issues/131
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-01-27 13:03:36 +01:00
parent 40202a522a
commit 84173ff9e3

View file

@ -486,6 +486,12 @@ int main(int argc, char *argv[])
return 1;
}
if ((cflags & SND_TPLG_CREATE_VERBOSE) != 0 &&
output_file && strcmp(output_file, "-") == 0) {
fprintf(stderr, _("Invalid mix of verbose level and output to stdout.\n"));
return 1;
}
if (op == 'n') {
if (sflags != 0 && sflags != SND_TPLG_SAVE_SORT) {
fprintf(stderr, _("Wrong parameters for the normalize operation!\n"));