OSDN Git Service

PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlists
authorRobert Shih <robertshih@google.com>
Sat, 30 Aug 2014 01:48:52 +0000 (18:48 -0700)
committerRobert Shih <robertshih@google.com>
Sun, 7 Sep 2014 23:25:09 +0000 (16:25 -0700)
Bug: 17416658
Change-Id: I1d07ce03a293206c48ff9ee11dc78b815ba367a4

media/libstagefright/httplive/PlaylistFetcher.cpp

index 82a4c39..3ef0f06 100644 (file)
@@ -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();
     }