Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3d5cfaac authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

camera2 jni: nativeReadValues() can use camera_metadata_ro_entry instead of camera_metadata_entry



We don't guarantee CameraMetadata access is thread safe, however for
existing apps that might query camera metadata from multiple threads,
this change could help avoid read failures due to the need for native
camera metadata's internal lock.

Also return a NULL array instead of a 0 sized array in case the
entry.count is 0 since the caller expects either something with a valid
number of entries or null.

Bug: 371223465

Flag: EXEMPT bugfix

Test: manual GCA

Change-Id: I144f8e5438a4135440e34b9c65f326bba7748faa
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent e8c0fd8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment