spa: libcamera: use std::span

libcamera is planning to move to C++20 and drop the custom `libcamera::Span`
type at some point in the future. Since pipewire already uses C++20, remove
all uses of it and instead use `std::span` so that things will compile
after the removal.
This commit is contained in:
Barnabás Pőcze 2026-03-27 09:35:34 +01:00
parent 29b221671f
commit 84e7b744a6

View file

@ -5,6 +5,7 @@
/* SPDX-License-Identifier: MIT */
#include <cstddef>
#include <span>
#include <sstream>
#include <spa/support/plugin.h>
@ -25,7 +26,6 @@
#include <libcamera/camera.h>
#include <libcamera/property_ids.h>
#include <libcamera/base/span.h>
using namespace libcamera;
@ -50,7 +50,7 @@ struct impl {
std::string device_id);
};
const libcamera::Span<const int64_t> cameraDevice(const Camera& camera)
std::span<const int64_t> cameraDevice(const Camera& camera)
{
if (auto devices = camera.properties().get(properties::SystemDevices))
return devices.value();