summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-01-19 11:30:43 -0800
committerAndreas Huber <andih@google.com>2011-01-19 11:30:43 -0800
commit88b7ad413c4b6d08697069b18488641d6ce31fd3 (patch)
tree36d49e5cf69bbf5b513bcffd2f94ff4c40f35578 /media/libstagefright/httplive
parent88b348910a607ae399bcd693dd42a231d98da2c9 (diff)
downloadframeworks_av-88b7ad413c4b6d08697069b18488641d6ce31fd3.zip
frameworks_av-88b7ad413c4b6d08697069b18488641d6ce31fd3.tar.gz
frameworks_av-88b7ad413c4b6d08697069b18488641d6ce31fd3.tar.bz2
Always revert to the previous bandwidth if the required sequence number cannot be found
Change-Id: I098dba37f4a70fc703c9ce65346907c3e10f27f6
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/LiveSession.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp
index e731080..f20a4cb 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -438,8 +438,7 @@ rinse_repeat:
if (mSeqNumber < firstSeqNumberInPlaylist
|| mSeqNumber > lastSeqNumberInPlaylist) {
- if (mSeqNumber < firstSeqNumberInPlaylist
- && mPrevBandwidthIndex != (ssize_t)bandwidthIndex) {
+ if (mPrevBandwidthIndex != (ssize_t)bandwidthIndex) {
// Go back to the previous bandwidth.
LOGI("new bandwidth does not have the sequence number "