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

Commit adee56ab authored by Wei Jia's avatar Wei Jia
Browse files

MediaPlayerService: clear output in CallbackData when recycling AudioTrack.

Bug: 30365636
Change-Id: I3832a309f78a6fa89d4afea7bdd7139f0d9013f4
parent e7449bf6
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()) {