shithub: sox

Download patch

ref: 2f8ffb2eb958fb39af406a543f54e16f7c0e372f
parent: 367f1ee690609d7173ba2e51d74d17fd3182b350
author: rrt <rrt>
date: Wed Aug 22 20:51:07 EDT 2007

Abort rather than skip if only one track.

--- a/src/sox.c
+++ b/src/sox.c
@@ -1193,7 +1193,7 @@
 static void sigint(int s)
 {
   static struct timeval then;
-  if (show_progress && s == SIGINT && combine_method <= sox_concatenate &&
+  if (input_count > 1 && show_progress && s == SIGINT && combine_method <= sox_concatenate &&
       since(&then, 1., sox_true))
     user_skip = sox_true;
   else user_abort = sox_true;