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

Commit c2c874d8 authored by Mansoor Aftab's avatar Mansoor Aftab Committed by Igor Murashkin
Browse files

Camera3: Fix Bug minTimestamp is never greater than frame timestamp



Bug in logic since minTimestamp is initialized to -1, and this needs
to be updated for the first frame atleast for logic to work correctly
for subsequent frames.

Bug: 9007356
Change-Id: I70edc4d9f34ff67a141c027c67396dc2ca9e413a
Signed-off-by: default avatarIgor Murashkin <iam@google.com>
parent f21daf47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -384,7 +384,7 @@ nsecs_t ZslProcessor3::getCandidateTimestampLocked(size_t* metadataIdx) const {
                continue;
            }
            nsecs_t frameTimestamp = entry.data.i64[0];
            if (minTimestamp > frameTimestamp) {
            if (minTimestamp > frameTimestamp || minTimestamp == -1) {

                entry = frame.find(ANDROID_CONTROL_AE_STATE);
                if (entry.count == 0) {