mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +08:00
videoio: return -1 is incorrect for function with 'bool' result
This commit is contained in:
parent
f8a27d2603
commit
b54a70a538
@ -1722,7 +1722,7 @@ static bool icvSetControl (CvCaptureCAM_V4L* capture,
|
|||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"VIDEOIO ERROR: V4L2: setting property #%d is not supported\n",
|
"VIDEOIO ERROR: V4L2: setting property #%d is not supported\n",
|
||||||
property_id);
|
property_id);
|
||||||
return -1;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get the min/max values */
|
/* get the min/max values */
|
||||||
|
Loading…
Reference in New Issue
Block a user