camerad: fix POLLPRI event check in poll loop (#33591)

fix event check in poll loop to validate POLLPRI
This commit is contained in:
Dean Lee
2024-09-20 01:58:06 +08:00
committed by GitHub
parent c95f0f039f
commit b852aba670
+1 -1
View File
@@ -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));