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

Commit c5ce33d3 authored by Wei Jia's avatar Wei Jia Committed by android-build-merger
Browse files

MediaPlayerService: clear output in CallbackData when recycling AudioTrack. am: adee56ab

am: 85dbe661

Change-Id: If59f8e28b33334f3273500506bf041940951527c
parents 61286f78 85dbe661
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1938,6 +1938,7 @@ void MediaPlayerService::AudioOutput::switchToNextOutput() {
                    continue;
                }
                callbackData->mSwitching = true; // begin track switch
                callbackData->setOutput(NULL);
#else
                // tryBeginTrackSwitch() returns false if the callback has the lock.
                if (!mCallbackData->tryBeginTrackSwitch()) {