mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 16:55:42 +01:00
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:
parent
40202a522a
commit
84173ff9e3
1 changed files with 6 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue