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

Commit 9d1a69a4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix: Add missing null check for createAudioSource in setupRTPRecording" into main

parents 05877129 1bad4f10
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1568,6 +1568,9 @@ status_t StagefrightRecorder::setupRTPRecording() {

    if (mAudioSource != AUDIO_SOURCE_CNT) {
        source = createAudioSource();
        if (source == NULL) {
            return UNKNOWN_ERROR;
        }
        mAudioEncoderSource = source;
    } else {
        setDefaultVideoEncoderIfNecessary();