summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/DataSource.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-04-08 07:51:20 -0700
committerAndreas Huber <andih@google.com>2010-04-08 07:51:20 -0700
commitd8c76856c6d52dcd11a90124dafef0af99956e15 (patch)
treef9ef2f8539358e4d08e4d3a0edc79be3612ed8cb /media/libstagefright/DataSource.cpp
parentdac4ee72bac87388a1495e098f39d73168c8078f (diff)
downloadframeworks_av-d8c76856c6d52dcd11a90124dafef0af99956e15.zip
frameworks_av-d8c76856c6d52dcd11a90124dafef0af99956e15.tar.gz
frameworks_av-d8c76856c6d52dcd11a90124dafef0af99956e15.tar.bz2
Increase the size of the pages used in CachingDataSource (total amount of memory used remains the same) to compensate for reduced locality of audio/video data requests. Also fixes a mistaken trailing "\r\n" in the range header and better error handling on http connection.
Change-Id: Ic9a6ef204362bc9afdc61e081c76bc62e5ef92ad related-to-bug: 2580785
Diffstat (limited to 'media/libstagefright/DataSource.cpp')
-rw-r--r--media/libstagefright/DataSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/DataSource.cpp b/media/libstagefright/DataSource.cpp
index 284e3bc..86e4bfe 100644
--- a/media/libstagefright/DataSource.cpp
+++ b/media/libstagefright/DataSource.cpp
@@ -105,7 +105,7 @@ sp<DataSource> DataSource::CreateFromURI(
if (httpSource->connect() != OK) {
return NULL;
}
- source = new CachingDataSource(httpSource, 32 * 1024, 20);
+ source = new CachingDataSource(httpSource, 64 * 1024, 10);
} else {
// Assume it's a filename.
source = new FileSource(uri);