mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
fix _index / index
This commit is contained in:
parent
a048387376
commit
d067749c21
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user