summaryrefslogtreecommitdiffstats
path: root/include/media
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
commita51250bdc753c02b0cae1dd83750ae6e2c1036c7 (patch)
tree37766c5d7912f6ad6296ec9ff1f53b363da61f00 /include/media
parent98e26575373461dc16c749d1f756403e46a909d4 (diff)
downloadframeworks_base-a51250bdc753c02b0cae1dd83750ae6e2c1036c7.zip
frameworks_base-a51250bdc753c02b0cae1dd83750ae6e2c1036c7.tar.gz
frameworks_base-a51250bdc753c02b0cae1dd83750ae6e2c1036c7.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 'include/media')
-rw-r--r--include/media/stagefright/HTTPDataSource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/stagefright/HTTPDataSource.h b/include/media/stagefright/HTTPDataSource.h
index b5d1e7a..83be475 100644
--- a/include/media/stagefright/HTTPDataSource.h
+++ b/include/media/stagefright/HTTPDataSource.h
@@ -54,7 +54,7 @@ protected:
private:
enum {
- kBufferSize = 32 * 1024,
+ kBufferSize = 64 * 1024,
// If we encounter a socket-read error we'll try reconnecting
// and restarting the read for at most this many times.