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

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

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

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

Change-Id: I2330ee49688c9765a5b7d59aae80a7296179e244
parents 4041545c c5ce33d3
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()) {