summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2020-04-29 23:44:50 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-04-30 00:46:17 +0300
commit80551b8754ddb822151576189050f9c7a8aa5ac2 (patch)
treed285898476a5e76d91bc71efa184180a5dbaabeb
parent49856afa01c36d7e41f3a1ed31d7437e7e01dcc8 (diff)
libcamera: pipeline: rkisp1: Don't fail if sensorInfo fails
When starting the streaming, it might be that the call to sensorInfo fails. This does not mean that the camera can't stream so set 'ret' to 0. Fixes: fd554f9dba31 ("libcamera: ipa: Add support for CameraSensorInfo") Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 1a34ffe6..6aa31786 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -828,6 +828,7 @@ int PipelineHandlerRkISP1::start(Camera *camera)
/* \todo Turn this in an hard failure. */
LOG(RkISP1, Warning) << "Camera sensor information not available";
sensorInfo = {};
+ ret = 0;
}
std::map<unsigned int, IPAStream> streamConfig;