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:
parent
5c8de8a08e
commit
5621ac27a2
1 changed files with 1 additions and 1 deletions
|
@ -1003,7 +1003,7 @@ bool PipelineHandlerISI::match(DeviceEnumerator *enumerator)
|
||||||
|
|
||||||
ret = capture->open();
|
ret = capture->open();
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return false;
|
||||||
|
|
||||||
pipes_.push_back({ std::move(isi), std::move(capture) });
|
pipes_.push_back({ std::move(isi), std::move(capture) });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue