libcamera: camera: Remove explicit stream to buffer map in requestCompleted signal
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 <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -248,12 +248,13 @@ void MainWindow::stopCapture()
|
||||
setWindowTitle(title_);
|
||||
}
|
||||
|
||||
void MainWindow::requestComplete(Request *request,
|
||||
const std::map<Stream *, Buffer *> &buffers)
|
||||
void MainWindow::requestComplete(Request *request)
|
||||
{
|
||||
if (request->status() == Request::RequestCancelled)
|
||||
return;
|
||||
|
||||
const std::map<Stream *, Buffer *> &buffers = request->buffers();
|
||||
|
||||
framesCaptured_++;
|
||||
|
||||
Buffer *buffer = buffers.begin()->second;
|
||||
|
||||
Reference in New Issue
Block a user