mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 03:23:26 +01:00
Changed video get format to set format
* Fixes issue #394 * This was obviously meant to set the video format.
This commit is contained in:
parent
ee084c572c
commit
4019395f44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user