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:
committed by
Kieran Bingham
parent
75e7befb16
commit
a5fdf63e90
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user