summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/CameraSource.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-10-08 10:07:49 -0700
committerAndreas Huber <andih@google.com>2009-10-12 16:00:07 -0700
commitfa8de752507feaca695123911915070c1ce463b2 (patch)
treed3b7356ba9c31848b41ea027f978524762741aa6 /media/libstagefright/CameraSource.cpp
parentedb988128e5b14b46c692d19ea4f536d7daa7b39 (diff)
downloadframeworks_base-fa8de752507feaca695123911915070c1ce463b2.zip
frameworks_base-fa8de752507feaca695123911915070c1ce463b2.tar.gz
frameworks_base-fa8de752507feaca695123911915070c1ce463b2.tar.bz2
Change to a int64_t usecs representation for timestamps and duration throughout stagefright.
Diffstat (limited to 'media/libstagefright/CameraSource.cpp')
-rw-r--r--media/libstagefright/CameraSource.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libstagefright/CameraSource.cpp b/media/libstagefright/CameraSource.cpp
index 596ab67..40028a5 100644
--- a/media/libstagefright/CameraSource.cpp
+++ b/media/libstagefright/CameraSource.cpp
@@ -191,8 +191,7 @@ status_t CameraSource::read(
*buffer = new CameraBuffer(frame);
(*buffer)->meta_data()->clear();
- (*buffer)->meta_data()->setInt32(kKeyTimeScale, 15);
- (*buffer)->meta_data()->setInt32(kKeyTimeUnits, count);
+ (*buffer)->meta_data()->setInt64(kKeyTime, (count * 1000000) / 15);
(*buffer)->add_ref();
(*buffer)->setObserver(this);