projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a048387
)
fix _index / index
author
WonderRico
<rico_cotier@yahoo.fr>
Mon, 12 Aug 2013 09:19:53 +0000
(11:19 +0200)
committer
WonderRico
<rico_cotier@yahoo.fr>
Mon, 12 Aug 2013 09:19:53 +0000
(11:19 +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
4dca387
..
606e520
100644
(file)
--- a/
modules/highgui/src/cap_dshow.cpp
+++ b/
modules/highgui/src/cap_dshow.cpp
@@
-3170,7
+3170,7
@@
bool CvCaptureCAM_DShow::open( int _index )
devices = VI.listDevices(true);
if (devices == 0)
return false;
- if (_index < 0 || index > devices-1)
+ if (_index < 0 ||
_
index > devices-1)
return false;
VI.setupDevice(_index);
if( !VI.isDeviceSetup(_index) )