Browse Source

rpicamera: avoid hanging during encode errors (#1133)

pull/1233/head
aler9 3 years ago
parent
commit
4e4067dc85
  1. 2
      internal/rpicamera/exe/encoder.c

2
internal/rpicamera/exe/encoder.c

@ -325,6 +325,6 @@ void encoder_encode(encoder_t *enc, int buffer_fd, size_t size, int64_t timestam @@ -325,6 +325,6 @@ void encoder_encode(encoder_t *enc, int buffer_fd, size_t size, int64_t timestam
int res = ioctl(encp->fd, VIDIOC_QBUF, &buf);
if (res != 0) {
fprintf(stderr, "encoder_encode(): ioctl(VIDIOC_QBUF) failed\n");
exit(1);
// it happens when the raspberry is under pressure. do not exit.
}
}

Loading…
Cancel
Save