diff options
author | Chong Zhang <chz@google.com> | 2014-08-20 13:09:58 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-08-21 18:38:09 -0700 |
commit | d354d8d1b09503c0166c1f3e626cda72a3eeb83c (patch) | |
tree | bcb5370e8abc4611587dbef4066c0345a647c068 /include/media | |
parent | 111333eaab12448f45927464c8aeacbbf9a578a1 (diff) | |
download | frameworks_av-d354d8d1b09503c0166c1f3e626cda72a3eeb83c.zip frameworks_av-d354d8d1b09503c0166c1f3e626cda72a3eeb83c.tar.gz frameworks_av-d354d8d1b09503c0166c1f3e626cda72a3eeb83c.tar.bz2 |
move cache prefill to GenericSource's message handler
This allows prepareAsync to be terminated by reset promptly.
It also makes it easier to do buffer update as GenericSource
can access the cache status now.
Bug: 16892748
Bug: 17182378
Change-Id: Ia55c04a810fd805041cb2025f6739afa5120b5ed
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/DataSource.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h index 3fb9e36..8000e84 100644 --- a/include/media/stagefright/DataSource.h +++ b/include/media/stagefright/DataSource.h @@ -48,7 +48,7 @@ public: const sp<IMediaHTTPService> &httpService, const char *uri, const KeyedVector<String8, String8> *headers = NULL, - AString *sniffedMIME = NULL); + String8 *contentType = NULL); DataSource() {} @@ -102,10 +102,6 @@ protected: virtual ~DataSource() {} private: - enum { - kDefaultMetaSize = 200000, - }; - static Mutex gSnifferMutex; static List<SnifferFunc> gSniffers; static bool gSniffersRegistered; |