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

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

MediaPlayerService: allow next player to be NULL

am: 28284127

Change-Id: I54fad659721dde258259a503c5514d6327e521f7
parents 24b2dba4 28284127
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -932,7 +932,7 @@ status_t MediaPlayerService::Client::setNextPlayer(const sp<IMediaPlayer>& playe
    ALOGV("setNextPlayer");
    Mutex::Autolock l(mLock);
    sp<Client> c = static_cast<Client*>(player.get());
    if (!mService->hasClient(c)) {
    if (c != NULL && !mService->hasClient(c)) {
      return BAD_VALUE;
    }