From patchwork Wed Sep 23 16:44:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 9762 X-Patchwork-Delegate: kieran.bingham@ideasonboard.com Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 4C901C3B5B for ; Wed, 23 Sep 2020 16:44:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4396762FEC; Wed, 23 Sep 2020 18:44:19 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iXBpOdqj"; dkim-atps=neutral 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 2F7D260576 for ; Wed, 23 Sep 2020 18:44:17 +0200 (CEST) Received: from Q.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A1A0B9CE; Wed, 23 Sep 2020 18:44:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1600879456; bh=TpUIUoyashbCHjlPkpSkw+WM8CONmgNXCMsFjxEzyPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iXBpOdqjpnLG33G0I5otK7VGfeXD7dDoEGbhuMjpBeUL1S5N6bt4CFyw9YneBwFPF QZbn+sGtJmZf+luFKSjqElgzuHTGeilm4qTwS2MBUcIkY0kUr/DCX8Y0rtTtQWekm4 68SHCVYGAFbqtKXBHKsFTSC387Q3EBD0bHhe5GGc= From: Kieran Bingham To: libcamera devel Date: Wed, 23 Sep 2020 17:44:09 +0100 Message-Id: <20200923164412.319079-2-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200923164412.319079-1-kieran.bingham@ideasonboard.com> References: <20200923164412.319079-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/4] simple-cam: Use the new BufferMap interface X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erkan Diken Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The Request object has been updated to specify a BufferMap type. Utilise it. Reported-by: Erkan Diken Signed-off-by: Kieran Bingham --- simple-cam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-cam.cpp b/simple-cam.cpp index 56aed7564dad..e2ac122546ce 100644 --- a/simple-cam.cpp +++ b/simple-cam.cpp @@ -28,7 +28,7 @@ static void requestComplete(Request *request) if (request->status() == Request::RequestCancelled) return; - const std::map &buffers = request->buffers(); + const Request::BufferMap &buffers = request->buffers(); for (auto bufferPair : buffers) { // (Unused) Stream *stream = bufferPair.first;