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

Commit c77c6898 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 3221b333: am 26ad1e78: am 03d16e12: Merge "Make setCaptureRate locale safe"

* commit '3221b333':
  Make setCaptureRate locale safe
parents be7ddb9f 3221b333
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -351,12 +351,11 @@ public class MediaRecorder
     */
    public void setCaptureRate(double fps) {
        // Make sure that time lapse is enabled when this method is called.
        setParameter(String.format("time-lapse-enable=1"));
        setParameter("time-lapse-enable=1");

        double timeBetweenFrameCapture = 1 / fps;
        int timeBetweenFrameCaptureMs = (int) (1000 * timeBetweenFrameCapture);
        setParameter(String.format("time-between-time-lapse-frame-capture=%d",
                    timeBetweenFrameCaptureMs));
        setParameter("time-between-time-lapse-frame-capture=" + timeBetweenFrameCaptureMs);
    }

    /**