Commit 08ccf731 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: do not poll for POLLPRI

We do not dequeue those events. That could cause busy loops.
parent 65d36285
...@@ -218,7 +218,7 @@ static block_t *AccessRead( access_t *access ) ...@@ -218,7 +218,7 @@ static block_t *AccessRead( access_t *access )
struct pollfd fd; struct pollfd fd;
fd.fd = sys->fd; fd.fd = sys->fd;
fd.events = POLLIN|POLLPRI; fd.events = POLLIN;
fd.revents = 0; fd.revents = 0;
/* Wait for data */ /* Wait for data */
......
...@@ -488,7 +488,7 @@ static void *StreamThread (void *data) ...@@ -488,7 +488,7 @@ static void *StreamThread (void *data)
struct pollfd ufd[1]; struct pollfd ufd[1];
ufd[0].fd = fd; ufd[0].fd = fd;
ufd[0].events = POLLIN | POLLPRI; ufd[0].events = POLLIN;
for (;;) for (;;)
{ {
...@@ -523,7 +523,7 @@ static void *ReadThread (void *data) ...@@ -523,7 +523,7 @@ static void *ReadThread (void *data)
struct pollfd ufd[1]; struct pollfd ufd[1];
ufd[0].fd = fd; ufd[0].fd = fd;
ufd[0].events = POLLIN | POLLPRI; ufd[0].events = POLLIN;
for (;;) for (;;)
{ {
......
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