{"id":13938,"url":"https://patchwork.libcamera.org/api/patches/13938/?format=json","web_url":"https://patchwork.libcamera.org/patch/13938/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20210926203319.18289-2-laurent.pinchart@ideasonboard.com>","date":"2021-09-26T20:33:19","name":"[libcamera-devel,2/2] simple-cam: Use matching type to store stream size","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"2d60eff5a3a50a2ca7fe5a6e7edc13851b433795","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/13938/mbox/","series":[{"id":2569,"url":"https://patchwork.libcamera.org/api/series/2569/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2569","date":"2021-09-26T20:33:18","name":"[libcamera-devel,1/2] simple-cam: Turn globals static","version":1,"mbox":"https://patchwork.libcamera.org/series/2569/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/13938/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/13938/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 6D295BDC71\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun, 26 Sep 2021 20:33:34 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3D8A46918E;\n\tSun, 26 Sep 2021 22:33:34 +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 8DC1B6012D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 26 Sep 2021 22:33:30 +0200 (CEST)","from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 076C5BB0;\n\tSun, 26 Sep 2021 22:33:29 +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=\"bX2WF8TJ\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1632688410;\n\tbh=vTFfUinnYMZfhGv0PyyF8Ok0MKCtLUMD6H7bs4VVOz8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=bX2WF8TJdgyNfnjaOVRCUDOg4f0iB/ySgcC4/zihpJ2Vhb5mgCX7xtMcIvb1pQRVm\n\tHQwQpA9rymhaWdNVn5UxrVkarjJ4Hlo8u2Ntf/CzBxkm5Pg4SoKdsjRLYu58CQNFxf\n\t44yRWv6vrXi51Jo133AD6cyxK9w/uOO1VtpFCR0A=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Sun, 26 Sep 2021 23:33:19 +0300","Message-Id":"<20210926203319.18289-2-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.32.0","In-Reply-To":"<20210926203319.18289-1-laurent.pinchart@ideasonboard.com>","References":"<20210926203319.18289-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 2/2] simple-cam: Use matching type to\n\tstore stream size","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>","Cc":"Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm>\n\nSigned-off-by: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm>\n---\n simple-cam.cpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/simple-cam.cpp b/simple-cam.cpp\nindex 350f68be7906..e374e45849dc 100644\n--- a/simple-cam.cpp\n+++ b/simple-cam.cpp\n@@ -299,7 +299,7 @@ int main()\n \t\t\treturn EXIT_FAILURE;\n \t\t}\n \n-\t\tunsigned int allocated = allocator->buffers(cfg.stream()).size();\n+\t\tsize_t allocated = allocator->buffers(cfg.stream()).size();\n \t\tstd::cout << \"Allocated \" << allocated << \" buffers for stream\" << std::endl;\n \t}\n \n","prefixes":["libcamera-devel","2/2"]}