play.c: pcm_write() aborts on errors. No need to check the return value.
authorAndre <maan@p133.(none)>
Thu, 23 Feb 2006 17:34:59 +0000 (18:34 +0100)
committerAndre <maan@p133.(none)>
Thu, 23 Feb 2006 17:34:59 +0000 (18:34 +0100)
play.c

diff --git a/play.c b/play.c
index c7289c0..78eaf0c 100644 (file)
--- a/play.c
+++ b/play.c
@@ -244,11 +244,7 @@ again:
        if (!dont_write) {
                p = audiobuf;
                while (loaded >= chunk_bytes) {
-                       ret = (ssize_t) pcm_write(p, chunk_size) * bytes_per_frame;
-                       if (ret <= 0) {
-                               fprintf(stderr, "write error: %d\n", ret);
-                               EXIT(E_WRITE);
-                       }
+                       ret = pcm_write(p, chunk_size) * bytes_per_frame;
                        p += ret;
                        written += ret;
                        loaded -= ret;