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

Commit e914a341 authored by Apurupa Pattapu's avatar Apurupa Pattapu Committed by Steve Kondik
Browse files

httplive: Check for bandwidth switch only for variant playlists

LiveSession monitors bandwidth periodically to check if a bandwidth
switch is required. Schedule bandwdith monitors only for variant
playlists.

CRs-Fixed: 808563

Change-Id: I384f5331b172dde71a9d1f1b55f65353e1da08cf
parent 086daa6b
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -1564,8 +1564,10 @@ void LiveSession::onChangeConfiguration3(const sp<AMessage> &msg) {
    // All fetchers have now been started, the configuration change
    // has completed.

    if (mPlaylist->isVariantPlaylist()) {
        cancelCheckBandwidthEvent();
        scheduleCheckBandwidthEvent();
    }

    ALOGV("XXX configuration change completed.");
    mReconfigurationInProgress = false;
@@ -1772,9 +1774,12 @@ void LiveSession::postPrepared(status_t err) {

    mInPreparationPhase = false;

    //start switchdown monitor only for variant playlists
    if (mPlaylist->isVariantPlaylist()) {
        mSwitchDownMonitor = new AMessage(kWhatCheckSwitchDown, id());
        mSwitchDownMonitor->post();
    }
}

}  // namespace android