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

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

MediaPlayerService: allow next player to be NULL am: 28284127

am: f4e00a7c

Change-Id: I4b72afd20bbca69423d1be6ebf963ed41ded1a4e
parents 7fa70522 f4e00a7c
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;
    }