Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cff41ae3 authored by Chong Zhang's avatar Chong Zhang Committed by Android (Google) Code Review
Browse files

Merge "MediaRecorder: pass capture fps in float"

parents a9e1c4e5 fbdee2c0
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);
    }

    /**