From 4019395f44a97fd5b021f2b98517ffe15e9ff6aa Mon Sep 17 00:00:00 2001 From: Marin Ivanov Date: Thu, 28 Jul 2016 17:47:06 +0200 Subject: [PATCH] Changed video get format to set format * Fixes issue #394 * This was obviously meant to set the video format. --- src/video_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_device.c b/src/video_device.c index 19b4508..2307049 100644 --- a/src/video_device.c +++ b/src/video_device.c @@ -362,7 +362,7 @@ VideoDeviceError open_video_device(VideoDeviceType type, int32_t selection, uint fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; - if( -1 == xioctl(device->fd, VIDIOC_G_FMT, &fmt) ) { + if( -1 == xioctl(device->fd, VIDIOC_S_FMT, &fmt) ) { close(device->fd); free(device); unlock;