Commit 31bbe4eb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: force normal capture mode

This disables driver-specific modes that VLC would not know about.
This also disables high quality (i.e. still camera) mode since we want
video, as well as other any other future abnormal modes.
parent 9e4f91d7
......@@ -852,13 +852,16 @@ int SetupFormat (vlc_object_t *obj, int fd, uint32_t fourcc,
msg_Err (obj, "cannot get default format: %m");
return -1;
}
fmt->fmt.pix.pixelformat = fourcc;
if (v4l2_ioctl (fd, VIDIOC_G_PARM, parm) < 0)
{
msg_Err (obj, "cannot get streaming parameters: %m");
return -1;
}
fmt->fmt.pix.pixelformat = fourcc;
parm->parm.capture.capturemode = 0; /* normal video mode */
parm->parm.capture.extendedmode = 0;
struct v4l2_frmsizeenum fse = {
.pixel_format = fourcc,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment