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

Commit 7266bc80 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am ca7f1609: Merge "Prevent double disconnects in RTSPSource"

* commit 'ca7f1609':
  Prevent double disconnects in RTSPSource
parents 47a1fe04 ca7f1609
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -634,6 +634,10 @@ void NuPlayer::RTSPSource::onSDPLoaded(const sp<AMessage> &msg) {
}

void NuPlayer::RTSPSource::onDisconnected(const sp<AMessage> &msg) {
    if (mState == DISCONNECTED) {
        return;
    }

    status_t err;
    CHECK(msg->findInt32("result", &err));
    CHECK_NE(err, (status_t)OK);