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

Commit 0e2c09d5 authored by Robert Shih's avatar Robert Shih
Browse files

PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlists

Bug: 17416658
Change-Id: I1d07ce03a293206c48ff9ee11dc78b815ba367a4
parent cb16968f
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -737,12 +737,6 @@ void PlaylistFetcher::onDownloadNext() {
    const int32_t lastSeqNumberInPlaylist =
        firstSeqNumberInPlaylist + (int32_t)mPlaylist->size() - 1;

    if (mStartup && mSeqNumber >= 0
            && (mSeqNumber < firstSeqNumberInPlaylist || mSeqNumber > lastSeqNumberInPlaylist)) {
        // in case we guessed wrong during reconfiguration, try fetching the latest content.
        mSeqNumber = lastSeqNumberInPlaylist;
    }

    if (mDiscontinuitySeq < 0) {
        mDiscontinuitySeq = mPlaylist->getDiscontinuitySeq();
    }