]> git.alsa-project.org Git - alsa-utils.git/commitdiff
More fixes for capture
authorJaroslav Kysela <perex@perex.cz>
Sun, 14 Nov 1999 20:25:09 +0000 (20:25 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sun, 14 Nov 1999 20:25:09 +0000 (20:25 +0000)
aplay/aplay.c

index 9b5ba30e7d311fd6f2015edaf6e1f16fee07e627..35a03754b8615112ac656d4bd34f9f15899d143e 100644 (file)
@@ -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)