Set camera index in load_camera
This commit is contained in:

committed by
Martijn Braam

parent
92cad09b2c
commit
31699feee1
@@ -210,6 +210,7 @@ load_camera(libmegapixels_devconfig *config, config_t *cfg, const char *name)
|
|||||||
if (config->cameras == NULL) {
|
if (config->cameras == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
camera->index = config->count;
|
||||||
config->cameras[config->count++] = camera;
|
config->cameras[config->count++] = camera;
|
||||||
|
|
||||||
config_setting_t *modes = config_setting_lookup(root, "Modes");
|
config_setting_t *modes = config_setting_lookup(root, "Modes");
|
||||||
|
Reference in New Issue
Block a user