shithub: sox

Download patch

ref: 6889492d09962b661549cc27026c4aece4b75e41
parent: 3b1312bec5ba218462ba9e8d3137ae7f30ccba7a
author: robs <robs>
date: Sun Jun 17 10:59:09 EDT 2007

Fix a bug

--- a/src/effects.c
+++ b/src/effects.c
@@ -114,7 +114,7 @@
 
   if (effp->handler.flags & SOX_EFF_NULL) {
     sox_report("has no effect (is a proxy effect)");
-    return SOX_EFF_NULL;
+    return SOX_SUCCESS;
   }
   effp->ininfo = *in;
   effp->outinfo = *out;
@@ -133,7 +133,7 @@
   ret = start(effp);
   if (ret == SOX_EFF_NULL) {
     sox_report("has no effect in this configuration");
-    return SOX_EFF_NULL;
+    return SOX_SUCCESS;
   }
   if (ret != SOX_SUCCESS)
     return SOX_EOF;