| commit | fb42ae811617d88c7f1e4d2d65256f2ffb89b3cb | [log] [tgz] |
|---|---|---|
| author | Roman Kiryanov <rkir@google.com> | Fri Feb 17 23:12:11 2023 -0800 |
| committer | Roman Kiryanov <rkir@google.com> | Fri Feb 17 23:16:18 2023 -0800 |
| tree | 3ab225da6228061ef91852c6bac18a289cf0c9b0 | |
| parent | dab56ccf2f37dbb09ce64f60f3bacfeeda534729 [diff] |
Fix iterating over cameras in media profiles initialization The loop used to go through camera id indexes while calling it `cameraId`. This caused a crash and bootloop if an index was not present in `mCameraIds` (e.g. if `mCameraIds` is an array of one element other than zero). Bug: 269194950 Test: presubmit Change-Id: I12b3058b0f1728d0127873c7362dceef9ddd3cd9 Signed-off-by: Roman Kiryanov <rkir@google.com>