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

Commit 577a4e18 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

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

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/3522150



Change-Id: If34a43e989a3ed5e561a5e98443233e66909739c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7c0e0e26 9d1a69a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1569,6 +1569,9 @@ status_t StagefrightRecorder::setupRTPRecording() {

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