shithub: sox

Download patch

ref: 882205b378e6521395d610d832cdc12fbb43aa29
parent: 5dd3781ba19781048609e3ce684d8cc4558eabc5
author: rrt <rrt>
date: Sat Apr 5 11:26:36 EDT 2008

Fix misleading errors: SoX can be missing MP3 encoding/decoding simply
because it's not installed; it doesn't have to be compiled without it.

--- a/src/mp3.c
+++ b/src/mp3.c
@@ -336,7 +336,7 @@
 #else /*HAVE_MAD_H*/
 static int startread(sox_format_t * ft)
 {
-  lsx_fail_errno(ft,SOX_EOF,"SoX was compiled without MP3 decoding support");
+  lsx_fail_errno(ft,SOX_EOF,"SoX cannot find the MP3 decoder");
   return SOX_EOF;
 }
 #define sox_mp3read NULL
@@ -496,7 +496,7 @@
 #else /* HAVE_LAME_LAME_H */
 static int startwrite(sox_format_t * ft UNUSED)
 {
-  lsx_fail_errno(ft,SOX_EOF,"SoX was compiled without MP3 encoding support");
+  lsx_fail_errno(ft,SOX_EOF,"SoX cannot find the MP3 encoder");
   return SOX_EOF;
 }
 #define sox_mp3write NULL