From 1fc87828715ef5cda402f1960231621672f91513 Mon Sep 17 00:00:00 2001 From: James Dong Date: Mon, 13 Jun 2011 18:42:24 -0700 Subject: Enforce the rule that the timestamp from timelapse video source monotically increases Change-Id: Ie5ccb43e0192420300da58525ec52af7544e8e9e --- media/libstagefright/CameraSourceTimeLapse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'media/libstagefright/CameraSourceTimeLapse.cpp') diff --git a/media/libstagefright/CameraSourceTimeLapse.cpp b/media/libstagefright/CameraSourceTimeLapse.cpp index 3689557..cc22574 100644 --- a/media/libstagefright/CameraSourceTimeLapse.cpp +++ b/media/libstagefright/CameraSourceTimeLapse.cpp @@ -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; } } -- cgit v1.1