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

Commit 01a9f042 authored by Wei Jia's avatar Wei Jia Committed by Gerrit Code Review
Browse files

Merge "MediaPlayer: use mLock to prevent racing condition."

parents bbc96beb b06d2bd7
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;
    }