diff options
author | Andreas Huber <andih@google.com> | 2011-03-30 11:15:27 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-03-30 11:15:27 -0700 |
commit | a2e57ca6504adfb3045c1d349d3abad796d8001f (patch) | |
tree | 17b774dcedb0fd1e8898ca68b5bc80e012022c2e /include | |
parent | 163ac289ae9952fb79c47121d65e40ed3cc75b0d (diff) | |
download | frameworks_base-a2e57ca6504adfb3045c1d349d3abad796d8001f.zip frameworks_base-a2e57ca6504adfb3045c1d349d3abad796d8001f.tar.gz frameworks_base-a2e57ca6504adfb3045c1d349d3abad796d8001f.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')
-rw-r--r-- | include/media/stagefright/DataSource.h | 2 |
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() {} |