summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive/LiveSession.h
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2014-08-29 18:16:29 -0700
committerRobert Shih <robertshih@google.com>2014-09-12 12:20:46 -0700
commitf69c996864844e8f669308af8412cede043062a2 (patch)
tree847ff73fbecbfd2ac7bc4fade03f9985611689cc /media/libstagefright/httplive/LiveSession.h
parentae6fe431d150d561fa27d060f38b5dd7c42820bb (diff)
downloadframeworks_av-f69c996864844e8f669308af8412cede043062a2.zip
frameworks_av-f69c996864844e8f669308af8412cede043062a2.tar.gz
frameworks_av-f69c996864844e8f669308af8412cede043062a2.tar.bz2
LiveSession: re-buffer on under run to avoid stutter
Bug: 13742725 Change-Id: I7dad8876e18084c3c060d08190fa8a72fc2f5bad
Diffstat (limited to 'media/libstagefright/httplive/LiveSession.h')
-rw-r--r--media/libstagefright/httplive/LiveSession.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/LiveSession.h b/media/libstagefright/httplive/LiveSession.h
index 8a800da..26df543 100644
--- a/media/libstagefright/httplive/LiveSession.h
+++ b/media/libstagefright/httplive/LiveSession.h
@@ -153,6 +153,7 @@ private:
sp<IMediaHTTPService> mHTTPService;
bool mInPreparationPhase;
+ bool mBuffering[kMaxStreams];
sp<HTTPBase> mHTTPDataSource;
KeyedVector<String8, String8> mExtraHeaders;
@@ -242,6 +243,7 @@ private:
static int SortByBandwidth(const BandwidthItem *, const BandwidthItem *);
static StreamType indexToType(int idx);
+ static ssize_t typeToIndex(int32_t type);
void changeConfiguration(
int64_t timeUs, size_t bandwidthIndex, bool pickTrack = false);