Commit 7d24eb51 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: work around drivers without VIDIOC_G_PARM (refs #7250)

parent c0b661ce
......@@ -500,7 +500,8 @@ int SetupFormat (vlc_object_t *obj, int fd, uint32_t fourcc,
if (v4l2_ioctl (fd, VIDIOC_G_PARM, parm) < 0)
{
msg_Err (obj, "cannot get streaming parameters: %m");
return -1;
memset (parm, 0, sizeof (parm));
parm->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
}
parm->parm.capture.capturemode = 0; /* normal video mode */
parm->parm.capture.extendedmode = 0;
......
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