linux-v4l2: Correct udev fd poll event test

Parentheses are needed due to operator precedence (although the previous
code happened to work because POLLIN has the value 1).

Fixes:		91f986ec99 ("linux-v4l2: Check udev fd events")
master
Ed Maste 2022-08-17 10:25:33 -04:00 committed by Georges Basile Stavracas Neto
parent 07c54e1b18
commit 8b370c4218
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ static void *udev_event_thread(void *vptr)
if (poll(fds, 2, 1000) <= 0)
continue;
if (!fds[0].revents & POLLIN)
if (!(fds[0].revents & POLLIN))
continue;
dev = udev_monitor_receive_device(mon);