From: Andre Date: Thu, 23 Feb 2006 17:34:59 +0000 (+0100) Subject: play.c: pcm_write() aborts on errors. No need to check the return value. X-Git-Tag: v0.2.11~48^2~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=140f9c897ee0ae990a7c6125b660958a32feabbe;p=paraslash.git play.c: pcm_write() aborts on errors. No need to check the return value. --- diff --git a/play.c b/play.c index c7289c02..78eaf0c5 100644 --- 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;