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

Commit 85dbe661 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

Change-Id: I72d4b7dc2b824f14bad62965bfa91b789756701f
parents cdb35bb0 adee56ab
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()) {