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

* commit '2c96c0e35c7600c1112baa2cbebdf52f477c8880':
  MediaPlayer: use mLock to prevent racing condition.
diff --git a/media/libmedia/mediaplayer.cpp b/media/libmedia/mediaplayer.cpp
index 25c9fb1..2795101 100644
--- a/media/libmedia/mediaplayer.cpp
+++ b/media/libmedia/mediaplayer.cpp
@@ -907,6 +907,7 @@
 }
 
 status_t MediaPlayer::setNextMediaPlayer(const sp<MediaPlayer>& next) {
+    Mutex::Autolock _l(mLock);
     if (mPlayer == NULL) {
         return NO_INIT;
     }