V4L2: fixed freeze when conversion is needed

This commit is contained in:
Martin Pulec
2018-07-11 11:22:08 +02:00
parent 1a7b34e7fc
commit 19503dbc94

View File

@@ -730,8 +730,10 @@ static struct video_frame * vidcap_v4l2_grab(void *state, struct audio_frame **a
// we do not need the driver buffer any more
if (ioctl(s->fd, VIDIOC_QBUF, &buf) != 0) {
perror("Unable to enqueue buffer");
};
log_msg(LOG_LEVEL_ERROR, "[V4L2 capture] Unable to enqueue buffer: %s\n", strerror(errno));
} else {
s->dequeued_buffers -= 1;
}
if(ret == -1) {
fprintf(stderr, "Error converting video.\n");