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

Commit 0d8957b0 authored by Wei Jia's avatar Wei Jia Committed by Jessica Wagantall
Browse files

MediaPlayerService: allow next player to be NULL

CYNGNOS-3286
Bug: 31155917
Bug: 30204103
Change-Id: I9a2a59ddb900fc942e7c19b31b53a110d790474c
parent 8456011a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1022,7 +1022,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;
    }