Merge "[WVDRM] Fix effectively-unlimited memory usage" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c671e40432
@@ -640,10 +640,12 @@ void WVMExtractorImpl::setUID(uid_t uid)
|
|||||||
size_t WVMExtractorImpl::getStreamCacheSize() const
|
size_t WVMExtractorImpl::getStreamCacheSize() const
|
||||||
{
|
{
|
||||||
char value[PROPERTY_VALUE_MAX];
|
char value[PROPERTY_VALUE_MAX];
|
||||||
snprintf(value, sizeof(value), "%d", kDefaultStreamCacheSize);
|
|
||||||
|
|
||||||
property_get("ro.com.widevine.cachesize", value, NULL);
|
if (property_get("ro.com.widevine.cachesize", value, NULL) > 0) {
|
||||||
return atol(value);
|
return atol(value);
|
||||||
|
} else {
|
||||||
|
return kDefaultStreamCacheSize;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t WVMExtractorImpl::getError() {
|
status_t WVMExtractorImpl::getError() {
|
||||||
|
|||||||
Reference in New Issue
Block a user