Merge pull request #7520 from kesinger:memsetform

This commit is contained in:
Alexander Alekhin 2016-10-20 12:56:18 +00:00
commit 052e62532a

View File

@ -1613,6 +1613,7 @@ static double icvGetPropertyCAM_V4L (const CvCaptureCAM_V4L* capture,
int property_id ) {
{
v4l2_format form;
memset(&form, 0, sizeof(v4l2_format));
form.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
if (-1 == ioctl (capture->deviceHandle, VIDIOC_G_FMT, &form)) {
/* display an error message, and return an error code */