Enforce the rule that the timestamp from timelapse video source monotically increases
Change-Id: Ie5ccb43e0192420300da58525ec52af7544e8e9e
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user