lcameraDev: libcamera has minor API difference on ARM/RPi5
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
#include <optional>
|
||||
#include <string_view>
|
||||
|
||||
namespace lcamera_dev {
|
||||
|
||||
@@ -31,10 +32,10 @@ CameraIdentityRecord buildIdentityRecord(
|
||||
|
||||
const libcamera::ControlList& props = camera->properties();
|
||||
|
||||
const std::optional<std::string> model =
|
||||
const std::optional<std::string_view> model =
|
||||
props.get(libcamera::properties::Model);
|
||||
if (model) {
|
||||
record.model = *model;
|
||||
record.model.assign(model->begin(), model->end());
|
||||
}
|
||||
|
||||
const std::optional<int> location =
|
||||
|
||||
Reference in New Issue
Block a user