Fix camera index for UVC cameras
This commit is contained in:
@@ -558,9 +558,8 @@ libmegapixels_load_uvc(libmegapixels_devconfig *config)
|
|||||||
if (config->cameras == NULL) {
|
if (config->cameras == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
config->cameras[config->count++] = camera;
|
|
||||||
camera->index = config->count;
|
camera->index = config->count;
|
||||||
|
config->cameras[config->count++] = camera;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user