From f7ddfd451775afd5f7c95771ce2a6b80b703836b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Mon, 21 Oct 2019 20:01:19 +0200 Subject: libcamera: camera: Remove explicit stream to buffer map in requestCompleted signal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stream to buffer map in the requestCompleted signal is taken directly from the request which is part of the same signal. Remove the map as it can be fetched directly from the request. Signed-off-by: Niklas Söderlund Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- test/camera/capture.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/camera') diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp index 791ccad1..83f97474 100644 --- a/test/camera/capture.cpp +++ b/test/camera/capture.cpp @@ -27,11 +27,13 @@ protected: completeBuffersCount_++; } - void requestComplete(Request *request, const std::map &buffers) + void requestComplete(Request *request) { if (request->status() != Request::RequestComplete) return; + const std::map &buffers = request->buffers(); + completeRequestsCount_++; /* Create a new request. */ -- cgit v1.2.1