mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 15:20:51 +08:00
Merge pull request #12405 from todortomov:3.4_cap_v4l_query_conrtols
This commit is contained in:
commit
e5236cecd6
@ -512,9 +512,11 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
|
|||||||
|
|
||||||
for (ctrl_id = V4L2_CID_PRIVATE_BASE;;ctrl_id++)
|
for (ctrl_id = V4L2_CID_PRIVATE_BASE;;ctrl_id++)
|
||||||
{
|
{
|
||||||
|
errno = 0;
|
||||||
|
|
||||||
v4l2_control_range(capture, ctrl_id);
|
v4l2_control_range(capture, ctrl_id);
|
||||||
|
|
||||||
if (errno == EINVAL)
|
if (errno)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user