shithub: sox

Download patch

ref: 491a6439c62d616e3036803ee58cc85c2e89418b
parent: ec9b7b9d5afeee67ff0c39de79018037d426d3ba
author: cbagwell <cbagwell>
date: Sat Oct 25 15:03:28 EDT 2008

Errors during read/writes were not really being caught.

--- a/src/alsa.c
+++ b/src/alsa.c
@@ -410,8 +410,8 @@
                 if (err < 0)
                     lsx_warn("Can't recovery from suspend, prepare failed: %s", snd_strerror(err));
             }
+            return 0;
         }
-        return 0;
     }
     return err;
 }