summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-04-01 14:28:31 -0700
committerAndreas Huber <andih@google.com>2013-04-01 14:28:31 -0700
commit997594088164cfb33c1cb8c376884346fbf1e7ae (patch)
tree773cf80cca3c6ce141b453ddef7569d02ecf95db /media/libstagefright/httplive
parent31215f2f341bae9d1f6db6368b2b1539e077d571 (diff)
downloadframeworks_av-997594088164cfb33c1cb8c376884346fbf1e7ae.zip
frameworks_av-997594088164cfb33c1cb8c376884346fbf1e7ae.tar.gz
frameworks_av-997594088164cfb33c1cb8c376884346fbf1e7ae.tar.bz2
Fix seek in response to OnPrepared() for HLS content
Change-Id: I0e52352845398a4db074e939487f6f6de94bd523 related-to-bug: 8225122
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/LiveSession.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp
index 962b01c..505bdb3 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -631,22 +631,20 @@ rinse_repeat:
if (index < mPlaylist->size()) {
int32_t newSeqNumber = firstSeqNumberInPlaylist + index;
- if (newSeqNumber != mSeqNumber) {
- ALOGI("seeking to seq no %d", newSeqNumber);
+ ALOGI("seeking to seq no %d", newSeqNumber);
- mSeqNumber = newSeqNumber;
+ mSeqNumber = newSeqNumber;
- mDataSource->reset();
+ mDataSource->reset();
- // reseting the data source will have had the
- // side effect of discarding any previously queued
- // bandwidth change discontinuity.
- // Therefore we'll need to treat these seek
- // discontinuities as involving a bandwidth change
- // even if they aren't directly.
- seekDiscontinuity = true;
- bandwidthChanged = true;
- }
+ // reseting the data source will have had the
+ // side effect of discarding any previously queued
+ // bandwidth change discontinuity.
+ // Therefore we'll need to treat these seek
+ // discontinuities as involving a bandwidth change
+ // even if they aren't directly.
+ seekDiscontinuity = true;
+ bandwidthChanged = true;
}
}