OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821ca51
)
When filling the cache, we always time out waiting for a condition that won't occur.
author
James Dong
<jdong@google.com>
Wed, 16 Jun 2010 01:14:03 +0000
(18:14 -0700)
committer
James Dong
<jdong@google.com>
Wed, 16 Jun 2010 21:12:53 +0000
(14:12 -0700)
We are actually improving the power consumption for streaming applications like Pandora.
Change-Id: Id32bacbc962e8c69c056599479b308d6a07b7a20
media/libstagefright/Prefetcher.cpp
patch
|
blob
|
history
diff --git
a/media/libstagefright/Prefetcher.cpp
b/media/libstagefright/Prefetcher.cpp
index
b6ed56b
..
650a9f9
100644
(file)
--- a/
media/libstagefright/Prefetcher.cpp
+++ b/
media/libstagefright/Prefetcher.cpp
@@
-148,8
+148,10
@@
void Prefetcher::threadFunc() {
if (mDone) {
break;
}
+
mCondition.waitRelative(
- mLock, fillingCache ? 10000000ll : 1000000000ll);
+ mLock, fillingCache ? 1ll : 1000000000ll);
+
ssize_t minIndex = -1;
for (size_t i = 0; i < mSources.size(); ++i) {