pipeline: imx8-isi: Fix match returned value in error case

The match() function returns a boolean type, while it could return int
in case of error when opening the capture file.

Fixes: 0ec982d210 ("libcamera: pipeline: Add IMX8 ISI pipeline")
Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Antoine Bouyer 2025-06-04 15:14:03 +02:00 committed by Laurent Pinchart
parent 5c8de8a08e
commit 5621ac27a2

View file

@ -1003,7 +1003,7 @@ bool PipelineHandlerISI::match(DeviceEnumerator *enumerator)
ret = capture->open();
if (ret)
return ret;
return false;
pipes_.push_back({ std::move(isi), std::move(capture) });
}