summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/DataSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-01-27 09:24:43 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-01-27 09:24:43 -0800
commite9f8c544dbe0ac7ff88df18bfe9084c72e3ac1d5 (patch)
treeb33f5145a89298ed0dfa8812948d498acfd0f3a7 /include/media/stagefright/DataSource.h
parent2dce41ad26cb3e9e15c9e456a84bcf5309548ca0 (diff)
parent66b0a35c9a4136a84c3f73b1b25fcb5220138b95 (diff)
downloadframeworks_av-e9f8c544dbe0ac7ff88df18bfe9084c72e3ac1d5.zip
frameworks_av-e9f8c544dbe0ac7ff88df18bfe9084c72e3ac1d5.tar.gz
frameworks_av-e9f8c544dbe0ac7ff88df18bfe9084c72e3ac1d5.tar.bz2
Merge "Better support for HTTP streaming media content, fixes to the way HTTPDataSource streams the data, prefetcher implementation."
Diffstat (limited to 'include/media/stagefright/DataSource.h')
-rw-r--r--include/media/stagefright/DataSource.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h
index f88666a..0c0ace0 100644
--- a/include/media/stagefright/DataSource.h
+++ b/include/media/stagefright/DataSource.h
@@ -31,6 +31,10 @@ class String8;
class DataSource : public RefBase {
public:
+ enum Flags {
+ kWantsPrefetching = 1,
+ };
+
static sp<DataSource> CreateFromURI(const char *uri);
DataSource() {}
@@ -45,6 +49,10 @@ public:
// May return ERROR_UNSUPPORTED.
virtual status_t getSize(off_t *size);
+ virtual uint32_t flags() {
+ return 0;
+ }
+
////////////////////////////////////////////////////////////////////////////
bool sniff(String8 *mimeType, float *confidence);