fix(video): slightly faster video

This commit is contained in:
2025-11-23 19:11:08 +01:00
parent 1bf0bfc558
commit d19f5d2d81
+5 -5
View File
@@ -275,13 +275,13 @@ static void close_stream(const VideoCapture *video_capture) {
} }
static bool read_video(VideoCapture *video_capture) { static bool read_video(VideoCapture *video_capture) {
bool result; if (ioctl(video_capture->fd, VIDIOC_DQBUF, &video_capture->buf) != -1) {
result = ioctl(video_capture->fd, VIDIOC_DQBUF, &video_capture->buf) != -1;
ioctl(video_capture->fd, VIDIOC_QBUF, &video_capture->buf); ioctl(video_capture->fd, VIDIOC_QBUF, &video_capture->buf);
return result; return true;
}
return false;
} }
void video_init(VideoCapture *video_capture, const char *name, void video_init(VideoCapture *video_capture, const char *name,