Skip to content

Commit

Permalink
encoderd: enhance robustness of open() with HANDLE_EINTR Macro (#34478)
Browse files Browse the repository at this point in the history
HANDLE_EINTR
  • Loading branch information
deanlee authored Jan 28, 2025
1 parent 1b1d37d commit e7b63dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/loggerd/encoder/v4l_encoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void V4LEncoder::dequeue_handler(V4LEncoder *e) {

V4LEncoder::V4LEncoder(const EncoderInfo &encoder_info, int in_width, int in_height)
: VideoEncoder(encoder_info, in_width, in_height) {
fd = open("/dev/v4l/by-path/platform-aa00000.qcom_vidc-video-index1", O_RDWR|O_NONBLOCK);
fd = HANDLE_EINTR(open("/dev/v4l/by-path/platform-aa00000.qcom_vidc-video-index1", O_RDWR|O_NONBLOCK));
assert(fd >= 0);

struct v4l2_capability cap;
Expand Down

0 comments on commit e7b63dc

Please sign in to comment.