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

Commit 76dc8dac authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Android (Google) Code Review
Browse files

Camera2: Ignore NOT_FOUND errors for face detect mode on frame receipt.

Reduce log spamming due to incomplete implementations.

Change-Id: I6eb9d657591bd5f1476dd8c96e4a00b8a03e2a5e
parent cd3ed116
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2010,7 +2010,11 @@ status_t Camera2Client::processFrameFaceDetect(camera_metadata_t *frame) {
    }
    res = find_camera_metadata_entry(frame, ANDROID_STATS_FACE_DETECT_MODE,
            &entry);
    if (res != OK) {
    // TODO: Remove this check once things are more compliant. For now, assume that
    // if we can't find the face detect mode, then it's probably not working.
    if (res == NAME_NOT_FOUND) {
        return OK;
    } else if (res != OK) {
        ALOGE("%s: Camera %d: Error reading face mode: %s (%d)",
                __FUNCTION__, mCameraId, strerror(-res), res);
        return res;