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

Commit 1243869f authored by Wei Jia's avatar Wei Jia
Browse files

MediaPlayer: use mLock to prevent racing condition.

Bug: 27823938
Change-Id: Iad156f3b35fdcccb13ad5c49921bbe3cc4fc0c47
parent ca0cde25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -907,6 +907,7 @@ void MediaPlayer::died()
}

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