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

Commit 1fc87828 authored by James Dong's avatar James Dong
Browse files

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

Change-Id: Ie5ccb43e0192420300da58525ec52af7544e8e9e
parent afcedc9e
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;
            }
        }