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

Commit f84433fb authored by James Dong's avatar James Dong
Browse files

Add read and write option in opening file for output in the writers

Change-Id: Ibfba0aacd3c8587c04a2e903b636de337cc30104
parent 7a4b8bd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ AMRWriter::AMRWriter(const char *filename)
      mPaused(false),
      mResumed(false) {

    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC);
    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR);
    if (mFd >= 0) {
        mInitCheck = OK;
    }
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ MPEG4Writer::MPEG4Writer(const char *filename)
      mEstimatedMoovBoxSize(0),
      mInterleaveDurationUs(1000000) {

    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC);
    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR);
    if (mFd >= 0) {
        mInitCheck = OK;
    }