summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2011-08-31 13:41:06 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-31 13:41:06 -0700
commitb2c4f0bf11f38fd31d80f1256c89b9db043a2929 (patch)
treed5d08a3a5cf189a5a5bc6ffeebf3a02e0464cb68 /include/media
parent6752d4827dee6bf5fb52cae61c00690e23d0b779 (diff)
parent728e08bc3fd99dc64f436270f53c22f3457204a8 (diff)
downloadframeworks_base-b2c4f0bf11f38fd31d80f1256c89b9db043a2929.zip
frameworks_base-b2c4f0bf11f38fd31d80f1256c89b9db043a2929.tar.gz
frameworks_base-b2c4f0bf11f38fd31d80f1256c89b9db043a2929.tar.bz2
Merge "Fix SurfaceMediaSource timestamp handling."
Diffstat (limited to 'include/media')
-rw-r--r--include/media/stagefright/SurfaceMediaSource.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h
index 74d54d1..f7f0ed7 100644
--- a/include/media/stagefright/SurfaceMediaSource.h
+++ b/include/media/stagefright/SurfaceMediaSource.h
@@ -347,6 +347,13 @@ private:
// encoder
int mNumFramesEncoded;
+ // mFirstFrameTimestamp is the timestamp of the first received frame.
+ // It is used to offset the output timestamps so recording starts at time 0.
+ int64_t mFirstFrameTimestamp;
+ // mStartTimeNs is the start time passed into the source at start, used to
+ // offset timestamps.
+ int64_t mStartTimeNs;
+
// mFrameAvailableCondition condition used to indicate whether there
// is a frame available for dequeuing
Condition mFrameAvailableCondition;