From: Jaroslav Kysela Date: Sun, 14 Nov 1999 20:25:09 +0000 (+0000) Subject: More fixes for capture X-Git-Tag: v1.0.3~431 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=55408731f7a06e0e78429b3a995b741ebef6ab0c;p=alsa-utils.git More fixes for capture --- 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)