Commit 2577194c authored by Adam Rankin's avatar Adam Rankin

Correcting return type from videoDevice::findType to be int thus allowing…

Correcting return type from videoDevice::findType to be int thus allowing detection of failed device init request
parent 1b6e0279
...@@ -2580,7 +2580,7 @@ bool videoDevice::setupDevice(unsigned int id) ...@@ -2580,7 +2580,7 @@ bool videoDevice::setupDevice(unsigned int id)
bool videoDevice::setupDevice(unsigned int w, unsigned int h, unsigned int idealFramerate) 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 ) if( id < 0 )
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment