ref: 4fc1cf1e7521c926fadb8d0d43eee32e207a953c
parent: a47bf7b62b44263a454c9c3f112dbf0d7b930bc1
author: robs <robs>
date: Sun Mar 11 08:25:37 EDT 2007
Fix some sox_warns to sox_fails
--- a/src/soxio.c
+++ b/src/soxio.c
@@ -101,7 +101,7 @@
ft->filetype = xstrdup(filetype);
if (sox_gettype(ft, sox_false) != SOX_SUCCESS) {
- sox_warn("Unknown input file format for `%s': %s",
+ sox_fail("Unknown input file format for `%s': %s",
ft->filename,
ft->sox_errstr);
goto input_error;
@@ -126,7 +126,7 @@
}
else if ((ft->fp = xfopen(ft->filename, "rb")) == NULL)
{
- sox_warn("Can't open input file `%s': %s", ft->filename,
+ sox_fail("Can't open input file `%s': %s", ft->filename,
strerror(errno));
goto input_error;
}
@@ -141,7 +141,7 @@
/* Read and write starters can change their formats. */
if ((*ft->h->startread)(ft) != SOX_SUCCESS)
{
- sox_warn("Failed reading `%s': %s", ft->filename, ft->sox_errstr);
+ sox_fail("Failed reading `%s': %s", ft->filename, ft->sox_errstr);
goto input_error;
}
@@ -154,7 +154,7 @@
if (sox_checkformat(ft) )
{
- sox_warn("bad input format for file %s: %s", ft->filename,
+ sox_fail("bad input format for file %s: %s", ft->filename,
ft->sox_errstr);
goto input_error;
}