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

fix event check in poll loop to validate POLLPRI
pull/33595/head
Dean Lee 7 months ago committed by GitHub
parent c95f0f039f
commit b852aba670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/camerad/cameras/camera_qcom2.cc

@ -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));

Loading…
Cancel
Save