shithub: sox

Download patch

ref: c3d59a870f506272f4d36e540170c900c44ac738
parent: dfe7ff454e0d9f28c28a0b2d7550c23c12c3b8e4
author: robs <robs>
date: Sun Jun 10 15:57:31 EDT 2007

small fix

--- a/src/sox.c
+++ b/src/sox.c
@@ -1228,7 +1228,8 @@
       add_auto_effect("resample", &signal);
 
     if (i < nuser_effects)
-      sox_add_effect(&user_efftab[i], &signal, &ofile->ft->signal);
+      if (sox_add_effect(&user_efftab[i], &signal, &ofile->ft->signal) != SOX_SUCCESS)
+        exit(2);
   }
   /* Add auto effects if still needed at this point */
   if (signal.rate != ofile->ft->signal.rate)