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

Commit 50b9d889 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...

MediaPlayerService: allow next player to be NULL am: 28284127 am: f4e00a7c am: 0dd714e4 am: de97dbd6 am: a7549d3d am: c6fdb3d6
am: 629e78c1

Change-Id: I14c17d063743ca79f43f674c2d4cbcb57f90451e
parents f49ac6ef 629e78c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1062,7 +1062,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;
    }