ref: c33f3eb7efde0a2a201e57e4a6b9967e92c07b08
parent: 05f98be8d25ebd7daf28b536acffb1adacb4197d
author: cbagwell <cbagwell>
date: Sun Mar 19 21:37:10 EST 2006
Don't call drain() again when it alread returned EOF.
--- a/src/sox.c
+++ b/src/sox.c
@@ -1174,6 +1174,15 @@
if (!havedata && input_eff > 0)
{
+ /* When EOF has been detected, skip to the next input
+ * before looking for more data.
+ */
+ if (input_eff_eof)
+ {
+ input_eff++;
+ input_eff_eof = 0;
+ }
+
/* If the input file is not returning data then
* we must prime the pump using the drain effect.
* After its primed, the loop will suck the data