Compare commits

1 Commits

Author SHA1 Message Date
b3249721d2 config: fix syntax error in pinepone.conf 2024-05-19 00:01:00 +00:00

View File

@@ -191,7 +191,10 @@ load_camera(libmegapixels_devconfig *config, config_t *cfg, const char *name)
return -1;
}
libmegapixels_camera *camera;
camera = calloc(1, sizeof(libmegapixels_camera));
camera = malloc(sizeof(libmegapixels_camera));
camera->sensor_fd = 0;
camera->media_fd = 0;
camera->video_fd = 0;
int res = find_media_node(camera, bridge_driver, sensor_driver);
if (res < 0) {