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

Commit a84f7d95 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "StagefrightRecorder: add null check for recording source" into av-aosp.lnx.2.0-dev

parents b532dc09 bbe4711b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1064,6 +1064,10 @@ status_t StagefrightRecorder::setupRawAudioRecording() {
    } else if (audioEncoder == NULL && mAudioEncoder == AUDIO_ENCODER_LPCM) {
        sp<MediaSource> src;
        src = setPCMRecording();
        if (src == NULL) {
            ALOGE("Recording source is null");
            return BAD_VALUE;
        }
        CHECK(mWriter != 0);
        mWriter->addSource(src);
    }