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

Commit a307c337 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Enforce the rule that the timestamp from timelapse video source monotically increases"

parents b432603d 1fc87828
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -486,7 +486,8 @@ bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) {
            if (mForceRead) {
                LOGV("dataCallbackTimestamp timelapse: forced read");
                mForceRead = false;
                *timestampUs = mLastFrameTimestampUs;
                *timestampUs =
                    mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs;
                return false;
            }
        }