summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/DataSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-03-30 11:15:27 -0700
committerAndreas Huber <andih@google.com>2011-03-30 11:15:27 -0700
commit6511c9755c3a3360ba869772600c7aae048a7ffc (patch)
tree2107391c77f03d89461e296703c856a32f9196c0 /include/media/stagefright/DataSource.h
parentff6bf33354f28a2bce073645bd102414c81d7580 (diff)
downloadframeworks_av-6511c9755c3a3360ba869772600c7aae048a7ffc.zip
frameworks_av-6511c9755c3a3360ba869772600c7aae048a7ffc.tar.gz
frameworks_av-6511c9755c3a3360ba869772600c7aae048a7ffc.tar.bz2
Stagefright DataSources now expose the underlying content mime type.
Use that mime type to determine if we should do upfront buffering at the start of playback and don't for audio streams to ensure playback starts fairly instantly. Change-Id: If21e36d1b024f0e5c723911bceadaa2e0307ab42 related-to-bug: 4090916
Diffstat (limited to 'include/media/stagefright/DataSource.h')
-rw-r--r--include/media/stagefright/DataSource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h
index d30e908..6b6fcdf 100644
--- a/include/media/stagefright/DataSource.h
+++ b/include/media/stagefright/DataSource.h
@@ -84,6 +84,8 @@ public:
return String8();
}
+ virtual String8 getMIMEType() const;
+
protected:
virtual ~DataSource() {}