summaryrefslogtreecommitdiff
path: root/src/android/camera3_hal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera3_hal.cpp')
-rw-r--r--src/android/camera3_hal.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/android/camera3_hal.cpp b/src/android/camera3_hal.cpp
index 8d2629ca..d6fc1ecc 100644
--- a/src/android/camera3_hal.cpp
+++ b/src/android/camera3_hal.cpp
@@ -7,8 +7,8 @@
#include <hardware/camera_common.h>
+#include "camera_device.h"
#include "camera_hal_manager.h"
-#include "camera_proxy.h"
#include "log.h"
using namespace libcamera;
@@ -71,14 +71,14 @@ static int hal_dev_open(const hw_module_t *module, const char *name,
LOG(HAL, Debug) << "Open camera " << name;
int id = atoi(name);
- CameraProxy *proxy = cameraManager.open(id, module);
- if (!proxy) {
+ CameraDevice *camera = cameraManager.open(id, module);
+ if (!camera) {
LOG(HAL, Error)
<< "Failed to open camera module '" << id << "'";
return -ENODEV;
}
- *device = &proxy->camera3Device()->common;
+ *device = &camera->camera3Device()->common;
return 0;
}