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

Commit a50273c7 authored by Pavan Chikkala's avatar Pavan Chikkala Committed by Abhisek Devkota
Browse files

audio: Check the return code of MediaWriter::start

- Return code of MediaWriter::start method is not checked
  in startRawAudioRecording. Due to this, sound recorder
  application is not receiving the error whenever there is
  an error in starting of the recording
- Fix is to check the error and return it back to
  the client accordingly

Change-Id: I15916211da7a2eb0f27fbf9d4151410a8bdfdd42
CRs-Fixed: 591788
parent 616521f1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1140,9 +1140,8 @@ status_t StagefrightRecorder::startRawAudioRecording() {
        mWriter->setMaxFileSize(mMaxFileSizeBytes);
    }
    mWriter->setListener(mListener);
    mWriter->start();

    return OK;
    status = mWriter->start();
    return status;
}

status_t StagefrightRecorder::startRTPRecording() {