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

Commit 3f603dad authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 1d6aedb3: am bf2751a5: am 7ccc6b9b: Merge "fix audio patch leak." into lmp-mr1-dev

* commit '1d6aedb3':
  fix audio patch leak.
parents 35d86b96 1d6aedb3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -908,8 +908,10 @@ void AudioPolicyService::AudioCommandThread::insertCommand_l(sp<AudioCommand>& c
    }
    removedCommands.clear();

    // Disable wait for status if delay is not 0
    if (delayMs != 0) {
    // Disable wait for status if delay is not 0.
    // Except for create audio patch command because the returned patch handle
    // is needed by audio policy manager
    if (delayMs != 0 && command->mCommand != CREATE_AUDIO_PATCH) {
        command->mWaitStatus = false;
    }