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

Commit 49544b64 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...

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

Change-Id: I1d606f6446213351b4795c2e455d79fc99d97169
parents d4dcaddb 1be392b4
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,