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

Commit d8214702 authored by Ari Hausman-Cohen's avatar Ari Hausman-Cohen
Browse files

Fix facing check in CameraUtils

One of the checks in CameraUtils::getRotationTransform
checked the wrong variable.

Change-Id: I365c1cf48d6b71468712da75c4499e00337b02d4
parent 85f1c3c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ status_t CameraUtils::getRotationTransform(const CameraMetadata& staticInfo,
    }

    camera_metadata_ro_entry_t entryFacing = staticInfo.find(ANDROID_LENS_FACING);
    if (entry.count == 0) {
    if (entryFacing.count == 0) {
        ALOGE("%s: Can't find android.lens.facing in static metadata!", __FUNCTION__);
        return INVALID_OPERATION;
    }