Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
d92d82d1
Commit
d92d82d1
authored
Apr 04, 2017
by
Pavel Rojtberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cap_v4l: SetProperty - do not return false while setting video size
parent
f34b2f7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
cap_v4l.cpp
modules/videoio/src/cap_v4l.cpp
+2
-0
No files found.
modules/videoio/src/cap_v4l.cpp
View file @
d92d82d1
...
...
@@ -1772,6 +1772,7 @@ static int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture,
switch
(
property_id
)
{
case
CV_CAP_PROP_FRAME_WIDTH
:
width
=
cvRound
(
value
);
retval
=
width
!=
0
;
if
(
width
!=
0
&&
height
!=
0
)
{
capture
->
width
=
width
;
capture
->
height
=
height
;
...
...
@@ -1781,6 +1782,7 @@ static int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture,
break
;
case
CV_CAP_PROP_FRAME_HEIGHT
:
height
=
cvRound
(
value
);
retval
=
height
!=
0
;
if
(
width
!=
0
&&
height
!=
0
)
{
capture
->
width
=
width
;
capture
->
height
=
height
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment