shithub: sox

Download patch

ref: 378db3445bdaf21a623cd40c9dac44533a2faf35
parent: df65582ea2b332660bdebe3ef0751473ed557295
author: robs <robs>
date: Mon Dec 29 06:27:58 EST 2008

fix recent breakage

--- a/src/sox.c
+++ b/src/sox.c
@@ -907,8 +907,8 @@
   sox_signalinfo_t signal = combiner_signal;
   unsigned i;
   sox_effect_t * effp;
-  char * rate_arg = sox_mode != is_player? NULL :
-    (rate_arg = getenv("PLAY_RATE_ARG"))? rate_arg : "-l";
+  char * rate_arg =
+    is_player ? (rate_arg = getenv("PLAY_RATE_ARG")) ? rate_arg : "-l" : NULL;
 
   /* 1st `effect' in the chain is the input combiner_signal.
    * add it only if its not there from a previous run.