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

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

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

* commit '678bcdc8':
  httplive: Defer switch down if a switch is in progress
parents 14a849c2 678bcdc8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1628,6 +1628,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));
@@ -1658,7 +1664,6 @@ void LiveSession::onSwitchDown() {
        return;
    }

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

// Mark switch done when: