From: Robert Shih Date: Sat, 30 Aug 2014 01:48:52 +0000 (-0700) Subject: PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlists X-Git-Tag: android-x86-6.0-r1~852^2~357^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0e2c09d56bb1d7d33b0de2f446fe0cf2d5b59fcb;p=android-x86%2Fframeworks-av.git PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlists Bug: 17416658 Change-Id: I1d07ce03a293206c48ff9ee11dc78b815ba367a4 --- diff --git a/media/libstagefright/httplive/PlaylistFetcher.cpp b/media/libstagefright/httplive/PlaylistFetcher.cpp index 82a4c39cfb..3ef0f06efc 100644 --- a/media/libstagefright/httplive/PlaylistFetcher.cpp +++ b/media/libstagefright/httplive/PlaylistFetcher.cpp @@ -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(); }