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

Commit 5ea3378d authored by Robert Shih's avatar Robert Shih Committed by Android (Google) Code Review
Browse files

Merge "PlaylistFetcher: avoid repeated fetch when we run off the edge of live...

Merge "PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlists" into lmp-dev
parents 84f5278a 0e2c09d5
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();
    }