libcamera: pipeline_handler: Pass a non-const Camera to methods
The start(), stop() and queueRequest() methods receive a const pointer to the related Camera object. The stop() request will need to modify the state of the camera, in order to report completion of pending requests. Un-constify the Camera pointer to that method, and update the start() and queueRequest() methods similarly for coherency. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -52,10 +52,10 @@ public:
|
||||
virtual int allocateBuffers(Camera *camera, Stream *stream) = 0;
|
||||
virtual int freeBuffers(Camera *camera, Stream *stream) = 0;
|
||||
|
||||
virtual int start(const Camera *camera) = 0;
|
||||
virtual void stop(const Camera *camera) = 0;
|
||||
virtual int start(Camera *camera) = 0;
|
||||
virtual void stop(Camera *camera) = 0;
|
||||
|
||||
virtual int queueRequest(const Camera *camera, Request *request) = 0;
|
||||
virtual int queueRequest(Camera *camera, Request *request) = 0;
|
||||
|
||||
protected:
|
||||
void registerCamera(std::shared_ptr<Camera> camera);
|
||||
|
||||
Reference in New Issue
Block a user