diff options
author | Robert Shih <robertshih@google.com> | 2014-09-29 14:42:35 -0700 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2014-10-01 10:58:30 -0700 |
commit | 360d6d0924f99b82ebacb5cfb6f7bca95e11b4ee (patch) | |
tree | 1373f20ae467045842a9d206729ace2700f52bd0 /include/media/stagefright/DataSource.h | |
parent | 992626cfe4852f1a2b46ea226b19c2eaa5dcfb89 (diff) | |
download | frameworks_av-360d6d0924f99b82ebacb5cfb6f7bca95e11b4ee.zip frameworks_av-360d6d0924f99b82ebacb5cfb6f7bca95e11b4ee.tar.gz frameworks_av-360d6d0924f99b82ebacb5cfb6f7bca95e11b4ee.tar.bz2 |
GenericSource: support disconnect before NuCachedSource2 is created
Bug: 17672488
Change-Id: I96776c9679fdcfbe9a442c86447c59802b1465ac
Diffstat (limited to 'include/media/stagefright/DataSource.h')
-rw-r--r-- | include/media/stagefright/DataSource.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h index 8000e84..3630263 100644 --- a/include/media/stagefright/DataSource.h +++ b/include/media/stagefright/DataSource.h @@ -34,6 +34,7 @@ struct AMessage; struct AString; struct IMediaHTTPService; class String8; +struct HTTPBase; class DataSource : public RefBase { public: @@ -48,7 +49,10 @@ public: const sp<IMediaHTTPService> &httpService, const char *uri, const KeyedVector<String8, String8> *headers = NULL, - String8 *contentType = NULL); + String8 *contentType = NULL, + HTTPBase *httpSource = NULL); + + static sp<DataSource> CreateMediaHTTP(const sp<IMediaHTTPService> &httpService); DataSource() {} |