From 18c4af9add71a319a073ea3617dbcd1201d78e6d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 18 Apr 2021 20:33:44 +0200 Subject: [PATCH] libcamera: fix compilation Fixes #1068 --- spa/plugins/libcamera/libcamera-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/libcamera/libcamera-utils.c b/spa/plugins/libcamera/libcamera-utils.c index 48246f0c9..d75d27f3c 100644 --- a/spa/plugins/libcamera/libcamera-utils.c +++ b/spa/plugins/libcamera/libcamera-utils.c @@ -753,6 +753,7 @@ mmap_init(struct impl *this, { struct port *port = &this->out_ports[0]; unsigned int i, j; + struct spa_data *d; spa_log_info(this->log, "libcamera: In mmap_init()"); @@ -775,7 +776,6 @@ mmap_init(struct impl *this, for (i = 0; i < libcamera_nbuffers; i++) { struct buffer *b; - struct spa_data *d; if (buffers[i]->n_datas < 1) { spa_log_error(this->log, "libcamera: invalid buffer data");