diff options
author | Robert Shih <robertshih@google.com> | 2014-08-29 18:48:52 -0700 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2014-09-07 16:25:09 -0700 |
commit | 0e2c09d56bb1d7d33b0de2f446fe0cf2d5b59fcb (patch) | |
tree | 9d8b9f52d7e39e87afc16a79a9d3e06900dc2b7d | |
parent | cb16968f593e4d58857c693c8ec6f2d2337f5512 (diff) | |
download | frameworks_av-0e2c09d56bb1d7d33b0de2f446fe0cf2d5b59fcb.zip frameworks_av-0e2c09d56bb1d7d33b0de2f446fe0cf2d5b59fcb.tar.gz frameworks_av-0e2c09d56bb1d7d33b0de2f446fe0cf2d5b59fcb.tar.bz2 |
PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlists
Bug: 17416658
Change-Id: I1d07ce03a293206c48ff9ee11dc78b815ba367a4
-rw-r--r-- | media/libstagefright/httplive/PlaylistFetcher.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/media/libstagefright/httplive/PlaylistFetcher.cpp b/media/libstagefright/httplive/PlaylistFetcher.cpp index 82a4c39..3ef0f06 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(); } |