shithub: sox

Download patch

ref: fee9a43775ad5aa0227119903bf1cd69e91aa328
parent: 882205b378e6521395d610d832cdc12fbb43aa29
author: rrt <rrt>
date: Wed Apr 9 07:12:14 EDT 2008

Revert bogus error message patch (thanks robs).

--- 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 cannot find the MP3 decoder");
+  lsx_fail_errno(ft,SOX_EOF,"SoX was compiled without MP3 decoding support");
   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 cannot find the MP3 encoder");
+  lsx_fail_errno(ft,SOX_EOF,"SoX was compiled without MP3 encoding support");
   return SOX_EOF;
 }
 #define sox_mp3write NULL