summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-07-15 16:53:31 -0700
committerAndreas Huber <andih@google.com>2011-07-15 16:53:31 -0700
commit8dae4ca229d21f68f3ee76c76b49b6f0a47aad53 (patch)
treedec69946bf4031a7071ab264cc21e25728b0f7ac /media/libstagefright/httplive
parent2048d0cfccce48be26816dec8711a6691ebff71c (diff)
downloadframeworks_av-8dae4ca229d21f68f3ee76c76b49b6f0a47aad53.zip
frameworks_av-8dae4ca229d21f68f3ee76c76b49b6f0a47aad53.tar.gz
frameworks_av-8dae4ca229d21f68f3ee76c76b49b6f0a47aad53.tar.bz2
Always consider playlists corresponding to different bandwidths different.
Change-Id: I07bb3023af5046db93b4f8785eb90c6a4fb15b95
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/LiveSession.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp
index ca61b3d..73b3d5b 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -494,6 +494,12 @@ rinse_repeat:
bool firstTime = (mPlaylist == NULL);
+ if ((ssize_t)bandwidthIndex != mPrevBandwidthIndex) {
+ // If we switch bandwidths, do not pay any heed to whether
+ // playlists changed since the last time...
+ mPlaylist.clear();
+ }
+
bool unchanged;
sp<M3UParser> playlist = fetchPlaylist(url.c_str(), &unchanged);
if (playlist == NULL) {