Commit d13462f3 authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Laurent Pinchart
Browse files

android: CameraDevice: Deny if the streams is empty

This checks if the number of streams is zero on configuration
and then returns -EINVAL.

Signed-off-by: default avatarHirokazu Honda <>
Reviewed-by: default avatarUmang Jain <>
Reviewed-by: default avatarLaurent Pinchart <>
Signed-off-by: default avatarLaurent Pinchart <>
parent 7d787983
......@@ -1554,6 +1554,11 @@ int CameraDevice::configureStreams(camera3_stream_configuration_t *stream_list)
running_ = false;
if (stream_list->num_streams == 0) {
LOG(HAL, Error) << "No streams in configuration";
return -EINVAL;
* Generate an empty configuration, and construct a StreamConfiguration
* for each camera3_stream to add to it.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment