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

Commit ff430c63 authored by Apurupa Pattapu's avatar Apurupa Pattapu Committed by Android Git Automerger
Browse files

am e3ada5d5: am 678bcdc8: httplive: Defer switch down if a switch is in progress

* commit 'e3ada5d5':
  httplive: Defer switch down if a switch is in progress
parents e33dee9e e3ada5d5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1627,6 +1627,12 @@ void LiveSession::onCheckSwitchDown() {
        return;
    }

    if (mSwitchInProgress || mReconfigurationInProgress) {
        ALOGV("Switch/Reconfig in progress, defer switch down");
        mSwitchDownMonitor->post(1000000ll);
        return;
    }

    for (size_t i = 0; i < kMaxStreams; ++i) {
        int32_t targetDuration;
        sp<AnotherPacketSource> packetSource = mPacketSources.valueFor(indexToType(i));
@@ -1657,7 +1663,6 @@ void LiveSession::onSwitchDown() {
        return;
    }

    changeConfiguration(-1, mCurBandwidthIndex - 1, false);
}

// Mark switch done when: