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

Commit 8433a6f4 authored by Clément Julliard's avatar Clément Julliard
Browse files

Remove logging when metadata tag can't be found.

This logging is expensive when it happens at 30fps (measured at around
0.5 mW per such message @30fps). Furthermore, no such logging happens in
the SDK when a tag can't be found, so this is simply aligning the
NDK's behavior with the SDK's.

Bug: 290694535
Test: built and confirmed power reduction.

Change-Id: I2b5397aa79fb176d90678a30550af08872b29a20
parent 4b66bb1d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -400,7 +400,6 @@ ACameraMetadata::getConstEntry(uint32_t tag, ACameraMetadata_const_entry* entry)

    camera_metadata_ro_entry rawEntry = static_cast<const CameraMetadata*>(mData.get())->find(tag);
    if (rawEntry.count == 0) {
        ALOGE("%s: cannot find metadata tag %d", __FUNCTION__, tag);
        return ACAMERA_ERROR_METADATA_NOT_FOUND;
    }
    entry->tag = tag;