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

Commit e76ee400 authored by Hangyu Kuang's avatar Hangyu Kuang Committed by Android (Google) Code Review
Browse files

Merge "recorder: Change the file read/write mode to be rw."

parents 8a0f0ed4 404802c0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -917,7 +917,7 @@ public class MediaRecorder
     */
    public void setNextOutputFile(File file) throws IOException
    {
        RandomAccessFile f = new RandomAccessFile(file, "rws");
        RandomAccessFile f = new RandomAccessFile(file, "rw");
        try {
            _setNextOutputFile(f.getFD());
        } finally {
@@ -942,7 +942,7 @@ public class MediaRecorder
    public void prepare() throws IllegalStateException, IOException
    {
        if (mPath != null) {
            RandomAccessFile file = new RandomAccessFile(mPath, "rws");
            RandomAccessFile file = new RandomAccessFile(mPath, "rw");
            try {
                _setOutputFile(file.getFD());
            } finally {
@@ -951,7 +951,7 @@ public class MediaRecorder
        } else if (mFd != null) {
            _setOutputFile(mFd);
        } else if (mFile != null) {
            RandomAccessFile file = new RandomAccessFile(mFile, "rws");
            RandomAccessFile file = new RandomAccessFile(mFile, "rw");
            try {
                _setOutputFile(file.getFD());
            } finally {