Skip to content

Commit

Permalink
Fix string type variable in videoInput::getDeviceList
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeGitb committed Sep 30, 2017
1 parent 532cdc5 commit 837c710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion videoInputSrcAndDemos/libs/videoInput/videoInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ std::vector <std::string> videoInput::getDeviceList(){
int numDev = videoInput::listDevices(true);
std::vector <std::string> deviceList;
for(int i = 0; i < numDev; i++){
char * name = videoInput::getDeviceName(i);
const char * name = videoInput::getDeviceName(i);
if( name == NULL )break;
deviceList.push_back(name);
}
Expand Down

0 comments on commit 837c710

Please sign in to comment.