Skip to content

Commit d15d9f5

Browse files
committed
Merge pull request opencv#8514 from paroj:v4lretval
2 parents e93aa15 + d92d82d commit d15d9f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/videoio/src/cap_v4l.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,6 +1772,7 @@ static int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture,
17721772
switch (property_id) {
17731773
case CV_CAP_PROP_FRAME_WIDTH:
17741774
width = cvRound(value);
1775+
retval = width != 0;
17751776
if(width !=0 && height != 0) {
17761777
capture->width = width;
17771778
capture->height = height;
@@ -1781,6 +1782,7 @@ static int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture,
17811782
break;
17821783
case CV_CAP_PROP_FRAME_HEIGHT:
17831784
height = cvRound(value);
1785+
retval = height != 0;
17841786
if(width !=0 && height != 0) {
17851787
capture->width = width;
17861788
capture->height = height;

0 commit comments

Comments
 (0)