From 57dae3e2b3f7d61fd15f763bbd9b862472022379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Tue, 7 Dec 2021 16:12:58 +0100 Subject: [PATCH] spa: libcamera: call `get()` instead of `fd()` libcamera commit 560f5cf998646ddc54a20dc1c7326012834d3204 renamed the `fd()` method on `SharedFD` to `get()`. Adjust the libcamera plugin accordingly. --- spa/plugins/libcamera/libcamera-utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/libcamera/libcamera-utils.cpp b/spa/plugins/libcamera/libcamera-utils.cpp index 60bd66223..b47e59ec5 100644 --- a/spa/plugins/libcamera/libcamera-utils.cpp +++ b/spa/plugins/libcamera/libcamera-utils.cpp @@ -558,7 +558,7 @@ mmap_init(struct impl *impl, struct port *port, if (port->memtype == SPA_DATA_DmaBuf || port->memtype == SPA_DATA_MemFd) { - d[j].fd = bufs[i]->planes()[j].fd.fd(); + d[j].fd = bufs[i]->planes()[j].fd.get(); spa_log_debug(impl->log, "Got fd = %ld for buffer: #%d", d[j].fd, i); d[j].data = NULL; SPA_FLAG_SET(b->flags, BUFFER_FLAG_ALLOCATED); @@ -568,7 +568,7 @@ mmap_init(struct impl *impl, struct port *port, d[j].data = mmap(NULL, d[j].maxsize + d[j].mapoffset, PROT_READ, MAP_SHARED, - bufs[i]->planes()[j].fd.fd(), + bufs[i]->planes()[j].fd.get(), 0); if (d[j].data == MAP_FAILED) { spa_log_error(impl->log, "mmap: %m");