when comparing c-type strings in videoInput::getDeviceIDFromName (videoInput.cpp, line 808) you should use strcmp, not operator ==