Commit 57d784d7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2 access: remove polling timer

parent bf6dcb5d
......@@ -33,6 +33,7 @@
#include <vlc_common.h>
#include <vlc_access.h>
#include <vlc_interrupt.h>
#include "v4l2.h"
......@@ -204,18 +205,7 @@ static int AccessPoll (access_t *access)
ufd.fd = sys->fd;
ufd.events = POLLIN;
switch (poll (&ufd, 1, 500))
{
case -1:
if (errno == EINTR)
case 0:
/* FIXME: kill this case (arbitrary timeout) */
return -1;
msg_Err (access, "poll error: %s", vlc_strerror_c(errno));
access->info.b_eof = true;
return -1;
}
return 0;
return vlc_poll_i11e (&ufd, 1, -1);
}
......
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