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

Commit 1be392b4 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

Change-Id: Ic6fd60b3f7217c2c14247332e64a1ae871a6d29c
parents c1e756e5 2f8e4539
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,