mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-19 15:24:22 -04:00
added error if -i file-type doesn't make sense
This commit is contained in:
@@ -146,6 +146,12 @@ int main(int argc, char **argv)
|
||||
if (*argv) {
|
||||
if (strcasecmp(*argv, "raw") == 0) {
|
||||
is_raw = 1;
|
||||
} else if (strcasecmp(*argv, "wav") == 0) {
|
||||
is_raw = 0;
|
||||
} else {
|
||||
fprintf(stderr, "Error: file type '%s' not supported\n", *argv);
|
||||
fclose(file);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user