From f168b1218dfd60c4ad8463b6dd6c6bd80860da38 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Sun, 2 Oct 2016 11:22:38 -0400 Subject: added error if -i file-type doesn't make sense --- utils/tinyplay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/tinyplay.c b/utils/tinyplay.c index cca8223..1c4e23f 100644 --- a/utils/tinyplay.c +++ b/utils/tinyplay.c @@ -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; } } } -- cgit v1.2.3