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

Commit 4f601e8c authored by Robert Shih's avatar Robert Shih
Browse files

HLS: remove EOS notification for live streams

If fetched beyond the end of a live playlist, refresh the playlist and
retry the download after appropriate delay.

Bug: 28320768
Change-Id: I073f3b80b06a4731049793bc5efe50974c153a6c
parent 26583ffe
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1092,6 +1092,13 @@ bool PlaylistFetcher::initDownloadState(
            // fall through
        } else {
            if (mPlaylist != NULL) {
                if (mSeqNumber >= firstSeqNumberInPlaylist + (int32_t)mPlaylist->size()
                        && !mPlaylist->isComplete()) {
                    // Live playlists
                    ALOGW("sequence number %d not yet available", mSeqNumber);
                    postMonitorQueue(delayUsToRefreshPlaylist());
                    return false;
                }
                ALOGE("Cannot find sequence number %d in playlist "
                     "(contains %d - %d)",
                     mSeqNumber, firstSeqNumberInPlaylist,