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

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

MediaPlayer: use mLock to prevent racing condition.

Bug: 27823938
Change-Id: Iad156f3b35fdcccb13ad5c49921bbe3cc4fc0c47
(cherry picked from commit 1243869f)
parent bbc96beb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -922,6 +922,7 @@ void MediaPlayer::died()
}

status_t MediaPlayer::setNextMediaPlayer(const sp<MediaPlayer>& next) {
    Mutex::Autolock _l(mLock);
    if (mPlayer == NULL) {
        return NO_INIT;
    }