Fix VendorTagId to be metadata_vendor_id_t
- It is currently int. This was causing downstream issues
because the CameraMetadata object passed to
configureStreams had the wrong vendor_id, so we couldn't
call update() on it with vendor tags.
- As a drive by, specify getVendorId() as being const.
Without this, we need to keep copying const CameraMetadata
objects to simply get their vendor id.
Thanks epeev@ for all your pointers along the debugging
journey!
Bug: 316413287
Test: m
Change-Id: I32bf9bcb7137990d28b9fcbe1b27bc41ebbd50ee
diff --git a/camera/CameraMetadata.cpp b/camera/CameraMetadata.cpp
index 2e808d1..424923a 100644
--- a/camera/CameraMetadata.cpp
+++ b/camera/CameraMetadata.cpp
@@ -880,7 +880,7 @@
return OK;
}
-metadata_vendor_id_t CameraMetadata::getVendorId() {
+metadata_vendor_id_t CameraMetadata::getVendorId() const {
return get_camera_metadata_vendor_id(mBuffer);
}