shithub: sox

Download patch

ref: 63dd7fd0c19617d1044a2787b1aa1c027cbcee21
parent: 9995f500eeea37ef253fadb5f9f3782ed3d86579
author: Ulrich Klauer <ulrich@chirlu.de>
date: Wed Jan 25 05:04:56 EST 2012

Fix rec.exe invoking play

Calling SoX as rec.exe would start it in play mode. Bug reported by
user zeysoft in tracker item 3477052.

--- a/src/sox.c
+++ b/src/sox.c
@@ -2844,7 +2844,7 @@
     sox_mode = sox_rec;
 #if defined(__CYGWIN__) || defined(__MINGW32__)
   else if (lsx_strends(myname, "rec.exe"))
-    sox_mode = sox_play;
+    sox_mode = sox_rec;
 #endif
   else if (lsx_strends(myname, "soxi"))
     sox_mode = sox_soxi;