diff options
author | Robert Shih <robertshih@google.com> | 2015-01-30 11:57:24 -0800 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2015-01-30 18:19:23 -0800 |
commit | dae1e733f7cd4abaa14791657fa0a1b0e44a27b6 (patch) | |
tree | 15955c3fc837aacc75b6b4b74928e6254c9b925b /media/libstagefright/httplive | |
parent | 1bf8a21018cc1d95dc3c28b5044aeda327c7b54e (diff) | |
download | frameworks_av-dae1e733f7cd4abaa14791657fa0a1b0e44a27b6.zip frameworks_av-dae1e733f7cd4abaa14791657fa0a1b0e44a27b6.tar.gz frameworks_av-dae1e733f7cd4abaa14791657fa0a1b0e44a27b6.tar.bz2 |
PlaylistFetcher: clear packet sources when adjusting starting sequence number
Bug: 19215971
Change-Id: I4ad29cf0ac24dea330017a1b0159b06922d768ae
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r-- | media/libstagefright/httplive/PlaylistFetcher.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/PlaylistFetcher.cpp b/media/libstagefright/httplive/PlaylistFetcher.cpp index 4a97803..9202ffa 100644 --- a/media/libstagefright/httplive/PlaylistFetcher.cpp +++ b/media/libstagefright/httplive/PlaylistFetcher.cpp @@ -977,6 +977,10 @@ void PlaylistFetcher::onDownloadNext() { if (err == -EAGAIN) { // starting sequence number too low/high mTSParser.clear(); + for (size_t i = 0; i < mPacketSources.size(); i++) { + sp<AnotherPacketSource> packetSource = mPacketSources.valueAt(i); + packetSource->clear(); + } postMonitorQueue(); return; } else if (err == ERROR_OUT_OF_RANGE) { |