diff options
author | James Dong <jdong@google.com> | 2011-01-14 19:19:41 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-14 19:19:41 -0800 |
commit | e7df0ddee486f4705b17b4d8ed57ddbeb8b71943 (patch) | |
tree | 229fede7ce47810bf66b66d385f72d514ce4a8f3 | |
parent | 7a1c32e719725787acda4885ad7bd8031975e8c7 (diff) | |
parent | ac0e4bdf05f52eddf417a4e938410523aa06fe59 (diff) | |
download | frameworks_base-e7df0ddee486f4705b17b4d8ed57ddbeb8b71943.zip frameworks_base-e7df0ddee486f4705b17b4d8ed57ddbeb8b71943.tar.gz frameworks_base-e7df0ddee486f4705b17b4d8ed57ddbeb8b71943.tar.bz2 |
Merge "Fixed thrashing in the cached buffer during 720p YT video streaming" into honeycomb
-rw-r--r-- | media/libstagefright/NuCachedSource2.cpp | 4 |
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" |