[vlc-commits] DTV: remove polling timer on Linux (fixes #8405, fixes #13979)

Rémi Denis-Courmont git at videolan.org
Wed Jul 1 18:22:10 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 30 23:52:51 2015 +0300| [025e3052ffd40936d4b7571bccbcfa58a2239904] | committer: Rémi Denis-Courmont

DTV: remove polling timer on Linux (fixes #8405, fixes #13979)

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

 modules/access/dtv/linux.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 7e44f31..028d3d2 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -26,6 +26,7 @@
 
 #include <vlc_common.h>
 #include <vlc_fs.h>
+#include <vlc_interrupt.h>
 
 #include <errno.h>
 #include <assert.h>
@@ -343,7 +344,7 @@ ssize_t dvb_read (dvb_device_t *d, void *buf, size_t len)
     else
         n = 1;
 
-    if (poll (ufd, n, 500 /* FIXME */) < 0)
+    if (vlc_poll_i11e (ufd, n, -1) < 0)
         return -1;
 
     if (d->frontend != -1 && ufd[1].revents)



More information about the vlc-commits mailing list