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

Commit f540a8b1 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audio policy: fix crash in checkOutputForAttributes"

parents 263fa296 78aade89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5098,7 +5098,7 @@ void AudioPolicyManager::checkOutputForAttributes(const audio_attributes_t &attr
            if (invalidate) continue;

            for (auto client : desc->clientsList(false /*activeOnly*/)) {
                if (!desc->mProfile->isDirectOutput()) {
                if (desc->isDuplicated() || !desc->mProfile->isDirectOutput()) {
                    // a client on a non direct outputs has necessarily a linear PCM format
                    // so we can call selectOutput() safely
                    const audio_io_handle_t newOutput = selectOutput(dstOutputs,