Commit 1e42c432 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA input: cope with EINTR

parent 8587d92a
...@@ -144,7 +144,7 @@ static void Poll (snd_pcm_t *pcm, int canc) ...@@ -144,7 +144,7 @@ static void Poll (snd_pcm_t *pcm, int canc)
do do
{ {
vlc_restorecancel (canc); vlc_restorecancel (canc);
poll (ufd, n, -1); while (poll (ufd, n, -1) == -1);
canc = vlc_savecancel (); canc = vlc_savecancel ();
snd_pcm_poll_descriptors_revents (pcm, ufd, n, &revents); snd_pcm_poll_descriptors_revents (pcm, ufd, n, &revents);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment