summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2015-03-06 16:45:59 -0800
committerRobert Shih <robertshih@google.com>2015-04-21 17:41:47 -0700
commit0dd229bb306df68b88e7419b3cc11fc6175be1da (patch)
tree93b54ff367c32f6c8256ef646c06ce8f73b8aef7 /media/libstagefright/httplive
parentc9c3804a2caf3c0f96e7a8985f82db7ceef490df (diff)
downloadframeworks_av-0dd229bb306df68b88e7419b3cc11fc6175be1da.zip
frameworks_av-0dd229bb306df68b88e7419b3cc11fc6175be1da.tar.gz
frameworks_av-0dd229bb306df68b88e7419b3cc11fc6175be1da.tar.bz2
AnotherPacketSource: make getBufferedDurationUs more discontinuity-aware
The new getBufferedDurationUs implementation obsoletes the purpose of getEstimatedDurationUs; remove getEstimatedDurationUs and its associated member variables. Finally replace calls to getEstimatedDurationUs with getBufferedDurationUs. Change-Id: I38f20df8e177ffbfe299b203d99076fc98dcd274
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/LiveSession.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp
index ab5bb3a..9ac764c 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -2262,8 +2262,9 @@ bool LiveSession::checkBuffering(
continue;
}
+ status_t finalResult;
int64_t bufferedDurationUs =
- mPacketSources[i]->getEstimatedDurationUs();
+ mPacketSources[i]->getBufferedDurationUs(&finalResult);
ALOGV("[%s] buffered %lld us",
getNameForStream(mPacketSources.keyAt(i)),
(long long)bufferedDurationUs);