From patchwork Wed May 18 17:19:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 15977 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 D5D84C326C for ; Wed, 18 May 2022 17:19:36 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 47F5B65663; Wed, 18 May 2022 19:19:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1652894376; bh=WcIU6SytRpLU14Pp8vq5u3xirFD8W77rkyjrHk1KLE8=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=wZbDO5NfJwhi6Dch6OTsParh9EkdaLc2xyEQpDHkdQC6dCpZhDkp5w/p3ngZB7F9q aylvu/vr+nXKIraeP5iiKVfKtar+YYp2RltJKeQbAEQf45E6TzQ/2bxd2DyR12Dgbz 2SjpwhXRom3+wZqn6CqUjIRxm2PJdDV/bIt3S2XgttF4YDlNeb/acM/cApU6sFp6u0 /UjaElPEPsqx66kofmoHrQXmjTfcNUhXrnuQftsVqmZ2MJfGyRy71hb1Z5eNALqJnx TjyIGG32FV2jCtJpAcDyCNdutHgI3zY1CvRE3y7Okxvm7oCera2xzoSFR4GamNKn/h chSb9MqhAROVQ== Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2883865663 for ; Wed, 18 May 2022 19:19:31 +0200 (CEST) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id 5D52C240002; Wed, 18 May 2022 17:19:30 +0000 (UTC) To: libcamera-devel@lists.libcamera.org Date: Wed, 18 May 2022 19:19:19 +0200 Message-Id: <20220518171921.244168-4-jacopo@jmondi.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220518171921.244168-1-jacopo@jmondi.org> References: <20220518171921.244168-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/5] cam: Queue requests through CameraSession::queueRequest() 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: , X-Patchwork-Original-From: Jacopo Mondi via libcamera-devel From: Jacopo Mondi Reply-To: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The CameraSession::processRequest() frame completion handler currently re-queues completed requests by calling Camera::queueRequests() explicitely. In order to maintain the CameraSession::queuedRequest_ counter up to date with the actual number of queued requests, call the CameraSession::queueRequest() instead of operating the Camera directly. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- src/cam/camera_session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cam/camera_session.cpp b/src/cam/camera_session.cpp index 186072817367..a1b447235009 100644 --- a/src/cam/camera_session.cpp +++ b/src/cam/camera_session.cpp @@ -423,7 +423,7 @@ void CameraSession::processRequest(Request *request) return; request->reuse(Request::ReuseBuffers); - camera_->queueRequest(request); + queueRequest(request); } void CameraSession::sinkRelease(Request *request)