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
8edc2e5a
Commit
8edc2e5a
authored
Mar 07, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10928 from Mehanik:fix_timeout
parents
21d9c47b
c7902999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cap_v4l.cpp
modules/videoio/src/cap_v4l.cpp
+3
-3
No files found.
modules/videoio/src/cap_v4l.cpp
View file @
8edc2e5a
...
...
@@ -911,7 +911,7 @@ static int mainloop_v4l2(CvCaptureCAM_V4L* capture) {
if
(
returnCode
==
-
1
)
return
-
1
;
if
(
returnCode
==
1
)
break
;
return
1
;
}
}
return
0
;
...
...
@@ -956,7 +956,7 @@ static bool icvGrabFrameCAM_V4L(CvCaptureCAM_V4L* capture) {
#if defined(V4L_ABORT_BADJPEG)
// skip first frame. it is often bad -- this is unnotied in traditional apps,
// but could be fatal if bad jpeg is enabled
if
(
mainloop_v4l2
(
capture
)
==
-
1
)
if
(
mainloop_v4l2
(
capture
)
!=
1
)
return
false
;
#endif
...
...
@@ -964,7 +964,7 @@ static bool icvGrabFrameCAM_V4L(CvCaptureCAM_V4L* capture) {
capture
->
FirstCapture
=
0
;
}
if
(
mainloop_v4l2
(
capture
)
==
-
1
)
return
false
;
if
(
mainloop_v4l2
(
capture
)
!=
1
)
return
false
;
return
true
;
}
...
...
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