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) {
|
||||
bool result;
|
||||
|
||||
result = ioctl(video_capture->fd, VIDIOC_DQBUF, &video_capture->buf) != -1;
|
||||
|
||||
if (ioctl(video_capture->fd, VIDIOC_DQBUF, &video_capture->buf) != -1) {
|
||||
ioctl(video_capture->fd, VIDIOC_QBUF, &video_capture->buf);
|
||||
|
||||
return result;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void video_init(VideoCapture *video_capture, const char *name,
|
||||
|
||||
Reference in New Issue
Block a user