summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/DataSource.cpp
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 /media/libstagefright/DataSource.cpp
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 'media/libstagefright/DataSource.cpp')
-rw-r--r--media/libstagefright/DataSource.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/DataSource.cpp b/media/libstagefright/DataSource.cpp
index b5c51f4..7c2096e 100644
--- a/media/libstagefright/DataSource.cpp
+++ b/media/libstagefright/DataSource.cpp
@@ -144,4 +144,8 @@ sp<DataSource> DataSource::CreateFromURI(
return source;
}
+String8 DataSource::getMIMEType() const {
+ return String8("application/octet-stream");
+}
+
} // namespace android