]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 c7289c020d5114629b066d401c8158a429a02df2..78eaf0c58644a2c8a5688e76e06a77722668755c 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;