We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e93aa15 + d92d82d commit d15d9f5Copy full SHA for d15d9f5
modules/videoio/src/cap_v4l.cpp
@@ -1772,6 +1772,7 @@ static int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture,
1772
switch (property_id) {
1773
case CV_CAP_PROP_FRAME_WIDTH:
1774
width = cvRound(value);
1775
+ retval = width != 0;
1776
if(width !=0 && height != 0) {
1777
capture->width = width;
1778
capture->height = height;
@@ -1781,6 +1782,7 @@ static int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture,
1781
1782
break;
1783
case CV_CAP_PROP_FRAME_HEIGHT:
1784
height = cvRound(value);
1785
+ retval = height != 0;
1786
1787
1788
0 commit comments