libcamera: raspberrypi: Fail on unsupported stream role
When an unsupported stream roles is requested to generateConfiguration(), the function shall fail instead of simply ignoring the request. Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
b7dfefb882
commit
d8848693bf
1 changed files with 2 additions and 1 deletions
|
@ -568,7 +568,8 @@ CameraConfiguration *PipelineHandlerRPi::generateConfiguration(Camera *camera,
|
||||||
default:
|
default:
|
||||||
LOG(RPI, Error) << "Requested stream role not supported: "
|
LOG(RPI, Error) << "Requested stream role not supported: "
|
||||||
<< role;
|
<< role;
|
||||||
break;
|
delete config;
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rawCount > 1 || outCount > 2) {
|
if (rawCount > 1 || outCount > 2) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue