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