summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/camera_hal_manager.cpp4
-rw-r--r--src/android/camera_hal_manager.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/android/camera_hal_manager.cpp b/src/android/camera_hal_manager.cpp
index 08c759df..1e66f632 100644
--- a/src/android/camera_hal_manager.cpp
+++ b/src/android/camera_hal_manager.cpp
@@ -113,12 +113,12 @@ unsigned int CameraHalManager::numCameras() const
return cameraManager_->cameras().size();
}
-int CameraHalManager::getCameraInfo(int id, struct camera_info *info)
+int CameraHalManager::getCameraInfo(unsigned int id, struct camera_info *info)
{
if (!info)
return -EINVAL;
- if (id >= numCameras() || id < 0) {
+ if (id >= numCameras()) {
LOG(HAL, Error) << "Invalid camera id '" << id << "'";
return -EINVAL;
}
diff --git a/src/android/camera_hal_manager.h b/src/android/camera_hal_manager.h
index 8004aaf6..8228623a 100644
--- a/src/android/camera_hal_manager.h
+++ b/src/android/camera_hal_manager.h
@@ -30,7 +30,7 @@ public:
int close(CameraProxy *proxy);
unsigned int numCameras() const;
- int getCameraInfo(int id, struct camera_info *info);
+ int getCameraInfo(unsigned int id, struct camera_info *info);
private:
void run() override;