summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/NuCachedSource2.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-01-14 15:15:12 -0800
committerJames Dong <jdong@google.com>2011-01-14 15:15:12 -0800
commit6ee94582e3ce7bdd9625345e7564e3176a51a2f3 (patch)
treebf2c802a855fcddb53ff057e0889e11a363ee846 /media/libstagefright/NuCachedSource2.cpp
parent42dd1d5f186252a7f09f8fb1a46ea82e3877b2d3 (diff)
downloadframeworks_av-6ee94582e3ce7bdd9625345e7564e3176a51a2f3.zip
frameworks_av-6ee94582e3ce7bdd9625345e7564e3176a51a2f3.tar.gz
frameworks_av-6ee94582e3ce7bdd9625345e7564e3176a51a2f3.tar.bz2
Fixed thrashing in the cached buffer during 720p YT video streaming
bug - 3340194 Change-Id: Ic59bb18ab1731d7dd7cae7cc8aeb393900bce7f6
Diffstat (limited to 'media/libstagefright/NuCachedSource2.cpp')
-rw-r--r--media/libstagefright/NuCachedSource2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/NuCachedSource2.cpp b/media/libstagefright/NuCachedSource2.cpp
index cdf4270..9017921 100644
--- a/media/libstagefright/NuCachedSource2.cpp
+++ b/media/libstagefright/NuCachedSource2.cpp
@@ -319,7 +319,7 @@ void NuCachedSource2::onRead(const sp<AMessage> &msg) {
void NuCachedSource2::restartPrefetcherIfNecessary_l(
bool ignoreLowWaterThreshold) {
- static const size_t kGrayArea = 256 * 1024;
+ static const size_t kGrayArea = 1024 * 1024;
if (mFetching || mFinalStatus != OK) {
return;
@@ -414,7 +414,7 @@ ssize_t NuCachedSource2::readInternal(off64_t offset, void *data, size_t size) {
if (offset < mCacheOffset
|| offset >= (off64_t)(mCacheOffset + mCache->totalSize())) {
- static const off64_t kPadding = 32768;
+ static const off64_t kPadding = 256 * 1024;
// In the presence of multiple decoded streams, once of them will
// trigger this seek request, the other one will request data "nearby"