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

Commit 23cba7d6 authored by Erik Wolsheimer's avatar Erik Wolsheimer Committed by android-build-merger
Browse files

fix deadlock in MediaPlayerService BUG: 25263909 am: 7845a1f0

am: 470b7752

* commit '470b7752':
  fix deadlock in MediaPlayerService BUG: 25263909
parents ae0dd12d 470b7752
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1962,8 +1962,13 @@ void MediaPlayerService::AudioOutput::pause()
void MediaPlayerService::AudioOutput::close()
{
    ALOGV("close");
    sp<AudioTrack> track;
    {
        Mutex::Autolock lock(mLock);
    close_l();
        track = mTrack;
        close_l(); // clears mTrack
    }
    // destruction of the track occurs outside of mutex.
}

void MediaPlayerService::AudioOutput::setVolume(float left, float right)