pipeline: raspberrypi: return an error if setFormat() fails
The method calls setFormat(), stores the return value, but then does not do anything with the return value. I presume it is meant to fail and return the error. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
22679a81eb
commit
7973efcbc0
@@ -593,6 +593,8 @@ int PipelineHandlerRPi::configure(Camera *camera, CameraConfiguration *config)
|
||||
* because of flips in the sensor.
|
||||
*/
|
||||
ret = data->isp_[Isp::Input].dev()->setFormat(&sensorFormat);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/*
|
||||
* See which streams are requested, and route the user
|
||||
|
||||
Reference in New Issue
Block a user