fix(video): slightly faster video
This commit is contained in:
+5
-5
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user