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

Commit a3beae49 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "audio policy: fix crash if output for DAP is not opened" into rvc-dev am: 36c77d40

Change-Id: I802e42ceda0a5d7cd0422f9076cea623f96a3263
parents 4e9bdf3f 36c77d40
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -954,7 +954,8 @@ status_t AudioPolicyManager::getOutputForAttrInt(
                                                  primaryMix->mDeviceAddress,
                                                  AUDIO_FORMAT_DEFAULT);
        sp<SwAudioOutputDescriptor> policyDesc = primaryMix->getOutput();
        if (policyDesc == nullptr || (policyDesc->mFlags & AUDIO_OUTPUT_FLAG_DIRECT)) {
        if (deviceDesc != nullptr
                && (policyDesc == nullptr || (policyDesc->mFlags & AUDIO_OUTPUT_FLAG_DIRECT))) {
            audio_io_handle_t newOutput;
            status = openDirectOutput(
                    *stream, session, config,