aplay - remove EINTR handling (a job for alsa-lib)

This commit is contained in:
Jaroslav Kysela 2005-08-24 14:07:35 +00:00
parent 7fb39a9cd5
commit 9997c99faf

View file

@ -1178,8 +1178,6 @@ static ssize_t pcm_write(u_char *data, size_t count)
xrun();
} else if (r == -ESTRPIPE) {
suspend();
} else if (r == -EINTR) {
continue;
} else if (r < 0) {
error(_("write error: %s"), snd_strerror(r));
exit(EXIT_FAILURE);
@ -1222,8 +1220,6 @@ static ssize_t pcm_writev(u_char **data, unsigned int channels, size_t count)
xrun();
} else if (r == -ESTRPIPE) {
suspend();
} else if (r == -EINTR) {
continue;
} else if (r < 0) {
error(_("writev error: %s"), snd_strerror(r));
exit(EXIT_FAILURE);
@ -1263,8 +1259,6 @@ static ssize_t pcm_read(u_char *data, size_t rcount)
xrun();
} else if (r == -ESTRPIPE) {
suspend();
} else if (r == -EINTR) {
continue;
} else if (r < 0) {
error(_("read error: %s"), snd_strerror(r));
exit(EXIT_FAILURE);
@ -1304,8 +1298,6 @@ static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount)
xrun();
} else if (r == -ESTRPIPE) {
suspend();
} else if (r == -EINTR) {
continue;
} else if (r < 0) {
error(_("readv error: %s"), snd_strerror(r));
exit(EXIT_FAILURE);