Patch Detail
Show a patch.
GET /api/1.1/patches/10067/?format=api
{ "id": 10067, "url": "https://patchwork.libcamera.org/api/1.1/patches/10067/?format=api", "web_url": "https://patchwork.libcamera.org/patch/10067/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20201015223750.58563-7-kieran.bingham@ideasonboard.com>", "date": "2020-10-15T22:37:45", "name": "[libcamera-devel,v2,06/11] libcamera: pipeline: rpi_stream: Explicitly name requestBuffer", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "af660763c3e85194bff081e418edce0a5cd10bf9", "submitter": { "id": 4, "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api", "name": "Kieran Bingham", "email": "kieran.bingham@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/10067/mbox/", "series": [ { "id": 1376, "url": "https://patchwork.libcamera.org/api/1.1/series/1376/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1376", "date": "2020-10-15T22:37:39", "name": "Shadowed Variables", "version": 2, "mbox": "https://patchwork.libcamera.org/series/1376/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/10067/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/10067/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 8332CBEEE0\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 15 Oct 2020 22:38:02 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4869D610AE;\n\tFri, 16 Oct 2020 00:38:02 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B3A646108B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 16 Oct 2020 00:37:57 +0200 (CEST)", "from Q.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net\n\t[86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 4AFB911F0;\n\tFri, 16 Oct 2020 00:37:57 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"ddrtjYGf\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1602801477;\n\tbh=g/9rsRUTMPpvw9kLUTGWs19Y+blTVCMcCXHPIpJKNA0=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=ddrtjYGf5sUZb+JqWL/HPX3QRXZLADYt+3n9RHIlHqM7dIOOTK/MHiCe5/tKJIACh\n\tSaSe4FqS92UM532F68YX4arXJ5RA9la4H1VLv9+K+fV81ytc6Td2HiedX363FodvWO\n\t0Y4e0iDx69OVHD9MvbO1V1+ki2uFWbjVk/qejl7A=", "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "To": "libcamera devel <libcamera-devel@lists.libcamera.org>", "Date": "Thu, 15 Oct 2020 23:37:45 +0100", "Message-Id": "<20201015223750.58563-7-kieran.bingham@ideasonboard.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20201015223750.58563-1-kieran.bingham@ideasonboard.com>", "References": "<20201015223750.58563-1-kieran.bingham@ideasonboard.com>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH v2 06/11] libcamera: pipeline: rpi_stream:\n\tExplicitly name requestBuffer", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "The FrameBuffer used to track any addition to the reqeust in an\nunder-run event was aliased against the returned buffer, being placed\nback on the availableBuffers_ queue.\n\nRename the aliased variable to be more explicit that it is a separate\nBuffer.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n src/libcamera/pipeline/raspberrypi/rpi_stream.cpp | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp b/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp\nindex 1a42cc17bcba..3a5dadab81e0 100644\n--- a/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp\n+++ b/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp\n@@ -163,9 +163,9 @@ void Stream::returnBuffer(FrameBuffer *buffer)\n \t * If so, do it now as availableBuffers_ will not be empty.\n \t */\n \twhile (!requestBuffers_.empty()) {\n-\t\tFrameBuffer *buffer = requestBuffers_.front();\n+\t\tFrameBuffer *requestBuffer = requestBuffers_.front();\n \n-\t\tif (!buffer) {\n+\t\tif (!requestBuffer) {\n \t\t\t/*\n \t\t\t * We want to queue an internal buffer, but none\n \t\t\t * are available. Can't do anything, quit the loop.\n@@ -177,12 +177,12 @@ void Stream::returnBuffer(FrameBuffer *buffer)\n \t\t\t * We want to queue an internal buffer, and at least one\n \t\t\t * is available.\n \t\t\t */\n-\t\t\tbuffer = availableBuffers_.front();\n+\t\t\trequestBuffer = availableBuffers_.front();\n \t\t\tavailableBuffers_.pop();\n \t\t}\n \n \t\trequestBuffers_.pop();\n-\t\tqueueToDevice(buffer);\n+\t\tqueueToDevice(requestBuffer);\n \t}\n }\n \n", "prefixes": [ "libcamera-devel", "v2", "06/11" ] }