Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
b3249721d2 |
@@ -191,7 +191,10 @@ load_camera(libmegapixels_devconfig *config, config_t *cfg, const char *name)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
libmegapixels_camera *camera;
|
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);
|
int res = find_media_node(camera, bridge_driver, sensor_driver);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
|
Reference in New Issue
Block a user