From 55408731f7a06e0e78429b3a995b741ebef6ab0c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 14 Nov 1999 20:25:09 +0000 Subject: [PATCH] More fixes for capture --- aplay/aplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index 9b5ba30..35a0375 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1305,8 +1305,8 @@ void capture_go(int fd, int loaded, u_long count, int rtype, char *name) } count -= c; } - if (l < -1) { - fprintf(stderr, "write error\n"); + if (l < 0) { + fprintf(stderr, "read error: %s\n", snd_strerror(l)); exit(-1); } if (l == 0)