summaryrefslogtreecommitdiff
path: root/src/cam
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2022-05-18 19:19:19 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-22 12:52:10 +0300
commit3a91e37bb82a9df0027adc4182fdb012068c7932 (patch)
tree4b705d388c7cee2821ca92f65b9c2cef791d078a /src/cam
parent38bff0c82bf18e7bc7a35a5395ccdc8078797f30 (diff)
cam: Queue requests through CameraSession::queueRequest()
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 <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam')
-rw-r--r--src/cam/camera_session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/camera_session.cpp b/src/cam/camera_session.cpp
index efffafbf..0bb95c8b 100644
--- a/src/cam/camera_session.cpp
+++ b/src/cam/camera_session.cpp
@@ -418,7 +418,7 @@ void CameraSession::processRequest(Request *request)
return;
request->reuse(Request::ReuseBuffers);
- camera_->queueRequest(request);
+ queueRequest(request);
}
void CameraSession::sinkRelease(Request *request)