mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-09 07:58:04 +00:00
rpicamera: avoid hanging during encode errors (#1133)
This commit is contained in:
parent
4d770cef94
commit
4e4067dc85
@ -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…
Reference in New Issue
Block a user