rpicamera: avoid hanging during encode errors (#1133)

This commit is contained in:
aler9 2022-11-03 17:39:51 +01:00
parent 4d770cef94
commit 4e4067dc85
1 changed files with 1 additions and 1 deletions

View File

@ -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.
}
}