From patchwork Fri Apr 26 15:01:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1111 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F156160E9D for ; Fri, 26 Apr 2019 17:02:10 +0200 (CEST) Received: from pendragon.station (net-37-182-44-227.cust.vodafonedsl.it [37.182.44.227]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8FA9A5F for ; Fri, 26 Apr 2019 17:02:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1556290930; bh=m3PfYlp0guQw8AWHBXLienX/vV8XL3Q2hiab8KCQcSE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eIqFJIG/I37Wm2alMhjYGfEth85rpokHg62lieBszSWFESTEY32+Zs7FEdY/NiPGH x1C4IiWp5aGhn2gKDm0hd93vTJSnLXtS6UMPVx2P6LIfD9RjSVezIpAHwjv5+3NU5H ndY+9Etchrl72ZyQqIo2/JTThd0WJlY68ha4OLOM= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Fri, 26 Apr 2019 18:01:52 +0300 Message-Id: <20190426150155.18652-6-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190426150155.18652-1-laurent.pinchart@ideasonboard.com> References: <20190426150155.18652-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 5/8] libcamera: v4l2_device: Buffer is not a struct X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2019 15:02:11 -0000 Buffer is a class, not a struct. Fix a variable declaration accordingly. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/v4l2_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp index 8d8c7887bf71..cfdce4813da4 100644 --- a/src/libcamera/v4l2_device.cpp +++ b/src/libcamera/v4l2_device.cpp @@ -622,7 +622,7 @@ int V4L2Device::exportBuffers(BufferPool *pool) for (i = 0; i < pool->count(); ++i) { struct v4l2_plane planes[VIDEO_MAX_PLANES] = {}; struct v4l2_buffer buf = {}; - struct Buffer &buffer = pool->buffers()[i]; + Buffer &buffer = pool->buffers()[i]; buf.index = i; buf.type = bufferType_;