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

Commit 75666516 authored by Wei Jia's avatar Wei Jia Committed by Dennis Cagle
Browse files

MediaPlayerService: allow next player to be NULL

Bug: 31155917
Bug: 30204103
Change-Id: I9a2a59ddb900fc942e7c19b31b53a110d790474c
(cherry picked from commit 28284127)
(cherry picked from commit f62a2b6f)
parent c4a2be2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1092,7 +1092,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;
    }