shithub: sox

Download patch

ref: 5c98974dd758b400569414f613258155b5caf403
parent: f3194c05dc66be967185e001a88f15d7268b0b91
author: cbagwell <cbagwell>
date: Tue Nov 1 20:56:39 EST 2005

Change standard messages into reports instead of warnings.

--- a/src/mp3.c
+++ b/src/mp3.c
@@ -307,8 +307,8 @@
           int tagsize;
           if ( (tagsize=tagtype(p->Stream->this_frame, p->Stream->bufend - p->Stream->this_frame)) == 0){
             if (!p->eof)
-              st_warn("recoverable frame level error (%s).\n",
-                      mad_stream_errorstr(p->Stream));
+              st_report("recoverable frame level error (%s).\n",
+                        mad_stream_errorstr(p->Stream));
           }
           else mad_stream_skip(p->Stream,tagsize);
           continue;
@@ -319,8 +319,8 @@
             continue;
           else
             {
-              st_warn("unrecoverable frame level error (%s).\n",
-                      mad_stream_errorstr(p->Stream));
+              st_report("unrecoverable frame level error (%s).\n",
+                        mad_stream_errorstr(p->Stream));
               return done;
             }
         }