mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Correcting return type from videoDevice::findType to be int thus allowing detection of failed device init request
This commit is contained in:
parent
1b6e02793c
commit
2577194c70
@ -2580,7 +2580,7 @@ bool videoDevice::setupDevice(unsigned int id)
|
||||
|
||||
bool videoDevice::setupDevice(unsigned int w, unsigned int h, unsigned int idealFramerate)
|
||||
{
|
||||
unsigned int id = findType(w * h, idealFramerate);
|
||||
int id = findType(w * h, idealFramerate);
|
||||
if( id < 0 )
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user