From patchwork Wed Sep 23 16:44:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 9763 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 C544BC3B5B 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 1C77062FE8; Wed, 23 Sep 2020 18:44:20 +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="Yg7C/3K3"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7F7A960576 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 0DC49DC4; Wed, 23 Sep 2020 18:44:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1600879457; bh=gsttiJJ+appO/ORcxGY54L/6k6PAXEtjaNa6kS+Ff1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yg7C/3K3Xm0TT8zySeBcRoNrsAcQ2P681iHt3YGc6TmWrMlwjLrXjzP+lrKC6o3gK FupY+UF/frMeZ7lLE0bgI2hEbwE7e9rA0BOodlSNbsdgpNu3d/3k3+EntwjwGiQk/y BV/g/Uz3tamjDS9NZbh/DuQFd8rJn4FSM2sZCBhM= From: Kieran Bingham To: libcamera devel Date: Wed, 23 Sep 2020 17:44:10 +0100 Message-Id: <20200923164412.319079-3-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 2/4] simple-cam: Use a const stream 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 API was updated to ensure the Stream pointer referenced from the BufferMap is const. Update accordingly. 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 e2ac122546ce..3aa975e14f48 100644 --- a/simple-cam.cpp +++ b/simple-cam.cpp @@ -70,7 +70,7 @@ static void requestComplete(Request *request) for (auto it = buffers.begin(); it != buffers.end(); ++it) { - Stream *stream = it->first; + const Stream *stream = it->first; FrameBuffer *buffer = it->second; request->addBuffer(stream, buffer);