summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2014-08-06 22:29:12 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-06 17:19:40 +0000
commit29e09664c2c5b49d78f2666d38a812502a36e26b (patch)
tree183ffe1053e1865431d5e2bb5ae9a2bb3c4c4946 /include
parent0a0e5f02037f396237461a9840b2fc7271812bdc (diff)
parent3de157dd8f9cd45bf9b0406268f5830887105ae1 (diff)
downloadframeworks_av-29e09664c2c5b49d78f2666d38a812502a36e26b.zip
frameworks_av-29e09664c2c5b49d78f2666d38a812502a36e26b.tar.gz
frameworks_av-29e09664c2c5b49d78f2666d38a812502a36e26b.tar.bz2
Merge "some fixes for crash when extractor creation fails" into lmp-dev
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/DataSource.h8
-rw-r--r--include/media/stagefright/MediaExtractor.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h
index f8787dd..3fb9e36 100644
--- a/include/media/stagefright/DataSource.h
+++ b/include/media/stagefright/DataSource.h
@@ -31,6 +31,7 @@
namespace android {
struct AMessage;
+struct AString;
struct IMediaHTTPService;
class String8;
@@ -46,7 +47,8 @@ public:
static sp<DataSource> CreateFromURI(
const sp<IMediaHTTPService> &httpService,
const char *uri,
- const KeyedVector<String8, String8> *headers = NULL);
+ const KeyedVector<String8, String8> *headers = NULL,
+ AString *sniffedMIME = NULL);
DataSource() {}
@@ -100,6 +102,10 @@ protected:
virtual ~DataSource() {}
private:
+ enum {
+ kDefaultMetaSize = 200000,
+ };
+
static Mutex gSnifferMutex;
static List<SnifferFunc> gSniffers;
static bool gSniffersRegistered;
diff --git a/include/media/stagefright/MediaExtractor.h b/include/media/stagefright/MediaExtractor.h
index 3076a96..183933a 100644
--- a/include/media/stagefright/MediaExtractor.h
+++ b/include/media/stagefright/MediaExtractor.h
@@ -65,6 +65,8 @@ public:
virtual char* getDrmTrackInfo(size_t trackID, int *len) {
return NULL;
}
+ virtual void setUID(uid_t uid) {
+ }
protected:
MediaExtractor() : mIsDrm(false) {}