summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/HTTPBase.cpp
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2015-01-28 21:38:38 -0800
committerLajos Molnar <lajos@google.com>2015-01-28 21:52:09 -0800
commitf0d689934e70d3e5b3784265e890377db04c7c1d (patch)
tree92a7f9bf2304a7b1ced4e34c7cca6ddc569b2e55 /media/libstagefright/HTTPBase.cpp
parentc84bc78d4244987268cbe621cecdfb72cbd48dc7 (diff)
downloadframeworks_av-f0d689934e70d3e5b3784265e890377db04c7c1d.zip
frameworks_av-f0d689934e70d3e5b3784265e890377db04c7c1d.tar.gz
frameworks_av-f0d689934e70d3e5b3784265e890377db04c7c1d.tar.bz2
Revert "HLS: QCom enhancements"
This is to restore patch attributions This reverts commit f580806d893c4631f5324ff0af5c2db68a40ef42. Bug: 18821145 Change-Id: Idc49385fffccfde2a3915388fe3fe4e2b740d787
Diffstat (limited to 'media/libstagefright/HTTPBase.cpp')
-rw-r--r--media/libstagefright/HTTPBase.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/media/libstagefright/HTTPBase.cpp b/media/libstagefright/HTTPBase.cpp
index 0c2ff15..32291c8 100644
--- a/media/libstagefright/HTTPBase.cpp
+++ b/media/libstagefright/HTTPBase.cpp
@@ -36,8 +36,7 @@ HTTPBase::HTTPBase()
mTotalTransferBytes(0),
mPrevBandwidthMeasureTimeUs(0),
mPrevEstimatedBandWidthKbps(0),
- mBandWidthCollectFreqMs(5000),
- mMaxBandwidthHistoryItems(100) {
+ mBandWidthCollectFreqMs(5000) {
}
void HTTPBase::addBandwidthMeasurement(
@@ -51,7 +50,7 @@ void HTTPBase::addBandwidthMeasurement(
mTotalTransferBytes += numBytes;
mBandwidthHistory.push_back(entry);
- if (++mNumBandwidthHistoryItems > mMaxBandwidthHistoryItems) {
+ if (++mNumBandwidthHistoryItems > 100) {
BandwidthEntry *entry = &*mBandwidthHistory.begin();
mTotalTransferTimeUs -= entry->mDelayUs;
mTotalTransferBytes -= entry->mNumBytes;
@@ -105,10 +104,6 @@ status_t HTTPBase::setBandwidthStatCollectFreq(int32_t freqMs) {
return OK;
}
-void HTTPBase::setBandwidthHistorySize(size_t numHistoryItems) {
- mMaxBandwidthHistoryItems = numHistoryItems;
-}
-
// static
void HTTPBase::RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag) {
int res = qtaguid_tagSocket(sockfd, kTag, uid);