summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-02-23 12:57:03 -0800
committerChong Zhang <chz@google.com>2015-02-23 22:00:39 +0000
commitfbdee2c04b88210bab5c9a769908be42d1775e16 (patch)
tree9f3382ab0dda9fb6e24733c39c577f062083828f /media
parent6a8253fdc9f4574c28b4beeeed90580ffc93734a (diff)
downloadframeworks_base-fbdee2c04b88210bab5c9a769908be42d1775e16.zip
frameworks_base-fbdee2c04b88210bab5c9a769908be42d1775e16.tar.gz
frameworks_base-fbdee2c04b88210bab5c9a769908be42d1775e16.tar.bz2
MediaRecorder: pass capture fps in float
bug: 19460202 Change-Id: I4723c8ed44b4de399de2f3bf051b2d1a4e881910
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaRecorder.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/media/java/android/media/MediaRecorder.java b/media/java/android/media/MediaRecorder.java
index 81d5afe..97b3f63 100644
--- a/media/java/android/media/MediaRecorder.java
+++ b/media/java/android/media/MediaRecorder.java
@@ -437,10 +437,7 @@ public class MediaRecorder
public void setCaptureRate(double fps) {
// Make sure that time lapse is enabled when this method is called.
setParameter("time-lapse-enable=1");
-
- double timeBetweenFrameCapture = 1 / fps;
- long timeBetweenFrameCaptureUs = (long) (1000000 * timeBetweenFrameCapture);
- setParameter("time-between-time-lapse-frame-capture=" + timeBetweenFrameCaptureUs);
+ setParameter("time-lapse-fps=" + fps);
}
/**