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

Commit 404802c0 authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

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

Bug: 64608451
Test: Video Recording
Change-Id: Ie250726a7d482130e3357b8c99049280183558c5
parent 4f99ad1e
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 {