From b54a70a53821258e92ea467edf91ba3fdecd9b3d Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 15 Oct 2018 18:20:15 +0000 Subject: [PATCH] videoio: return -1 is incorrect for function with 'bool' result --- modules/videoio/src/cap_v4l.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_v4l.cpp b/modules/videoio/src/cap_v4l.cpp index 35a948db0f..1bc5c9eb15 100644 --- a/modules/videoio/src/cap_v4l.cpp +++ b/modules/videoio/src/cap_v4l.cpp @@ -1722,7 +1722,7 @@ static bool icvSetControl (CvCaptureCAM_V4L* capture, fprintf(stderr, "VIDEOIO ERROR: V4L2: setting property #%d is not supported\n", property_id); - return -1; + return false; } /* get the min/max values */