camera: allow 0-sized metadata entries

0-sized metadata entries were rejected in
update_camera_metadata_entry() when the data pointer
was NULL, but accepted when it was not NULL.

This prevents return of empty array-type camera properties,
which is a valid case for some dynamic properties, e.g.
number of detected face rectangles.

Change-Id: I4e69d889fb416fd256a81e877f3a5aa43c253796
Signed-off-by: David Schalig <dschalig@nvidia.com>
1 file changed
tree: f3849a3561382a9779f51034d3290a3f8699ceb7
  1. audio_effects/
  2. audio_route/
  3. audio_utils/
  4. camera/
  5. private/
  6. CleanSpec.mk