From 140f9c897ee0ae990a7c6125b660958a32feabbe Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 23 Feb 2006 18:34:59 +0100 Subject: [PATCH] play.c: pcm_write() aborts on errors. No need to check the return value. --- play.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.39.5