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

Commit 436f5bd0 authored by Wei Jia's avatar Wei Jia Committed by android-build-merger
Browse files

Merge "MediaPlayer: use mLock to prevent racing condition." into nyc-dev

am: 2c96c0e3

* commit '2c96c0e3':
  MediaPlayer: use mLock to prevent racing condition.
parents 1eca9c4c 2c96c0e3
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;
    }