summaryrefslogtreecommitdiff
path: root/src/libcamera/camera_sensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/camera_sensor.cpp')
-rw-r--r--src/libcamera/camera_sensor.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index 27f82071..f7ed91d9 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -468,12 +468,10 @@ int CameraSensor::initProperties()
propertyValue = properties::CameraLocationBack;
break;
}
+ properties_.set(properties::Location, propertyValue);
} else {
- LOG(CameraSensor, Warning)
- << "Failed to retrieve the camera location, setting to External";
- propertyValue = properties::CameraLocationExternal;
+ LOG(CameraSensor, Warning) << "Failed to retrieve the camera location";
}
- properties_.set(properties::Location, propertyValue);
const auto &rotationControl = controls.find(V4L2_CID_CAMERA_SENSOR_ROTATION);
if (rotationControl != controls.end()) {