projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7fb0b
)
fix formating
author
WonderRico
<rico_cotier@yahoo.fr>
Fri, 9 Aug 2013 14:13:40 +0000
(16:13 +0200)
committer
WonderRico
<rico_cotier@yahoo.fr>
Fri, 9 Aug 2013 14:13:40 +0000
(16:13 +0200)
modules/highgui/src/cap_dshow.cpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/cap_dshow.cpp
b/modules/highgui/src/cap_dshow.cpp
index 3f364edb2c87f2b9cf60bc553ece6a7906930fdb..4dca387973ce1efc337c7e8bf3968740c2b94c47 100644
(file)
--- a/
modules/highgui/src/cap_dshow.cpp
+++ b/
modules/highgui/src/cap_dshow.cpp
@@
-3170,8
+3170,8
@@
bool CvCaptureCAM_DShow::open( int _index )
devices = VI.listDevices(true);
if (devices == 0)
return false;
-
if (_index < 0 || index > devices-1)
-
return false;
+ if (_index < 0 || index > devices-1)
+ return false;
VI.setupDevice(_index);
if( !VI.isDeviceSetup(_index) )
return false;