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

Commit 8c90ab1c authored by malikakash's avatar malikakash
Browse files

Fix VendorTagDescriptorCache::getTagType

- The return value should be -1, not 0,
  for invalid vendor ids, according to
  system/media/camera/include/system/camera_vendor_tags.h

Bug: 316413287
Test: m
Change-Id: Ie1b435029f0dafdf33d6fd46baf2ad5f472b5b0b
parent 9a238f6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -466,7 +466,7 @@ const char* VendorTagDescriptorCache::getTagName(uint32_t tag,

int VendorTagDescriptorCache::getTagType(uint32_t tag,
        metadata_vendor_id_t id) const {
    int ret = 0;
    int ret = -1;
    auto desc = mVendorMap.find(id);
    if (desc != mVendorMap.end()) {
        ret = desc->second->getTagType(tag);