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

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

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

* commit '7ccc6b9b':
  fix audio patch leak.
parents 9e308de9 7ccc6b9b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -907,8 +907,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;
    }