mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 20:53:01 +01:00
Merge pull request #403 from metala/fix-set-video-fmt
Changed video get format to set format
This commit is contained in:
commit
cb21672600
@ -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