Commit b54a70a5 authored by Alexander Alekhin's avatar Alexander Alekhin

videoio: return -1 is incorrect for function with 'bool' result

parent f8a27d26
...@@ -1722,7 +1722,7 @@ static bool icvSetControl (CvCaptureCAM_V4L* capture, ...@@ -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 */
......
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