From d354d8d1b09503c0166c1f3e626cda72a3eeb83c Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Wed, 20 Aug 2014 13:09:58 -0700 Subject: 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 --- include/media/stagefright/DataSource.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include') 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 &httpService, const char *uri, const KeyedVector *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 gSniffers; static bool gSniffersRegistered; -- cgit v1.1