mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-04 13:02:09 +08:00
camerad: fix POLLPRI event check in poll loop (#33591)
fix event check in poll loop to validate POLLPRI
This commit is contained in:
@@ -374,7 +374,7 @@ void camerad_thread() {
|
||||
break;
|
||||
}
|
||||
|
||||
if (!fds[0].revents) continue;
|
||||
if (!(fds[0].revents & POLLPRI)) continue;
|
||||
|
||||
struct v4l2_event ev = {0};
|
||||
ret = HANDLE_EINTR(ioctl(fds[0].fd, VIDIOC_DQEVENT, &ev));
|
||||
|
||||
Reference in New Issue
Block a user