am 5fe2e2fd: Upload Ed Schacker\'s fix for ANR on expired assets
* commit '5fe2e2fdb759b4102a1614e761a0db8eecc3aa27': Upload Ed Schacker's fix for ANR on expired assets
This commit is contained in:
@@ -858,7 +858,7 @@ status_t WVMDrmPlugin::onDecrypt(int uniqueId, DecryptHandle* decryptHandle, int
|
|||||||
status = mDrmPluginImpl->Operate(encBuffer->data, (*decBuffer)->data, encBuffer->length, iv);
|
status = mDrmPluginImpl->Operate(encBuffer->data, (*decBuffer)->data, encBuffer->length, iv);
|
||||||
if (status != WVDRMPluginAPI::RIGHTS_VALID) {
|
if (status != WVDRMPluginAPI::RIGHTS_VALID) {
|
||||||
(*decBuffer)->length = 0;
|
(*decBuffer)->length = 0;
|
||||||
usleep(1000000); // prevent spinning
|
usleep(1000); // prevent spinning
|
||||||
if (status == WVDRMPluginAPI::RIGHTS_NOT_ACQUIRED) {
|
if (status == WVDRMPluginAPI::RIGHTS_NOT_ACQUIRED) {
|
||||||
return DRM_ERROR_NO_LICENSE;
|
return DRM_ERROR_NO_LICENSE;
|
||||||
} else if (status == WVDRMPluginAPI::RIGHTS_EXPIRED) {
|
} else if (status == WVDRMPluginAPI::RIGHTS_EXPIRED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user