libcamera: Add a PipelineHandler::releaseDevice method

This notifies pipeline handlers when a camera is released, in case
they want to free any resources or memory buffers.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
David Plowman
2022-11-14 11:03:32 +00:00
committed by Kieran Bingham
parent 75e7befb16
commit a5fdf63e90
3 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -870,7 +870,7 @@ int Camera::release()
return ret == -EACCES ? -EBUSY : ret;
if (d->isAcquired())
d->pipe_->release();
d->pipe_->release(this);
d->setState(Private::CameraAvailable);