From f288a2b77d62c894ac393b350c7e03bbcfa7b392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 8 Sep 2021 09:16:00 +0200 Subject: [PATCH] libcamera: fix compilation error Upstream libcamera commit 32635054bc76e2ababd8ea2177fca1f88229541a changed "planes" on `FrameMetadata` to be a function. Adapt the plugin code accordingly. --- spa/plugins/libcamera/libcamera_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/libcamera/libcamera_wrapper.cpp b/spa/plugins/libcamera/libcamera_wrapper.cpp index d58238d33..45b4bc354 100644 --- a/spa/plugins/libcamera/libcamera_wrapper.cpp +++ b/spa/plugins/libcamera/libcamera_wrapper.cpp @@ -843,7 +843,7 @@ extern "C" { unsigned int planeIdx = 0; const std::vector &planes = buffer->planes(); const FrameMetadata &metadata = buffer->metadata(); - for (const FrameMetadata::Plane &plane : metadata.planes) { + for (const FrameMetadata::Plane &plane : metadata.planes()) { pBuf->datas[planeIdx].idx = planeIdx; pBuf->datas[planeIdx].type = 3; /*SPA_DATA_DmaBuf;*/ pBuf->datas[planeIdx].fd = planes[planeIdx].fd.fd();