diff options
author | Santhosh Behara <santhoshbehara@codeaurora.org> | 2015-09-29 11:24:21 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-12 00:05:02 -0700 |
commit | 97850dba0c3393126501991b8fa7431b7f130062 (patch) | |
tree | 38661814ac5474baf0a0fc897af454cc44c09f74 /media/libstagefright/httplive/PlaylistFetcher.cpp | |
parent | bae519fff60ceb8ceeb22c8d322cb8073e2a43d0 (diff) | |
download | frameworks_av-97850dba0c3393126501991b8fa7431b7f130062.zip frameworks_av-97850dba0c3393126501991b8fa7431b7f130062.tar.gz frameworks_av-97850dba0c3393126501991b8fa7431b7f130062.tar.bz2 |
httplive: Add default implementation in HLS for custom changes
Add getSeqNumberInLiveStreaming() function in PlayListFetcher
Make getBandwidthIndex() function to be virtual.
Change-Id: I5e2bc7a42e0d4a16d5b5ea5f2ec3d78a7d019ad3
Diffstat (limited to 'media/libstagefright/httplive/PlaylistFetcher.cpp')
-rw-r--r-- | media/libstagefright/httplive/PlaylistFetcher.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/httplive/PlaylistFetcher.cpp b/media/libstagefright/httplive/PlaylistFetcher.cpp index 5ad29c3..023de93 100644 --- a/media/libstagefright/httplive/PlaylistFetcher.cpp +++ b/media/libstagefright/httplive/PlaylistFetcher.cpp @@ -975,7 +975,9 @@ bool PlaylistFetcher::initDownloadState( if (mSegmentStartTimeUs < 0) { if (!mPlaylist->isComplete() && !mPlaylist->isEvent()) { // If this is a live session, start 3 segments from the end on connect - mSeqNumber = lastSeqNumberInPlaylist - 3; + if (!getSeqNumberInLiveStreaming()) { + mSeqNumber = lastSeqNumberInPlaylist - 3; + } if (mSeqNumber < firstSeqNumberInPlaylist) { mSeqNumber = firstSeqNumberInPlaylist; } |