[vlc-commits] ALSA input: cope with EINTR

Rémi Denis-Courmont git at videolan.org
Wed Apr 23 19:17:06 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 23 20:16:54 2014 +0300| [1e42c4325050860920cb11eba449bfd63badb43b] | committer: Rémi Denis-Courmont

ALSA input: cope with EINTR

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e42c4325050860920cb11eba449bfd63badb43b
---

 modules/access/alsa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/alsa.c b/modules/access/alsa.c
index 6cc0587..7e150de 100644
--- a/modules/access/alsa.c
+++ b/modules/access/alsa.c
@@ -144,7 +144,7 @@ static void Poll (snd_pcm_t *pcm, int canc)
     do
     {
         vlc_restorecancel (canc);
-        poll (ufd, n, -1);
+        while (poll (ufd, n, -1) == -1);
         canc = vlc_savecancel ();
         snd_pcm_poll_descriptors_revents (pcm, ufd, n, &revents);
     }



More information about the vlc-commits mailing list