Use Standard Errors in DrmPlugin
Now that MediaErrors.h has errors for some of the conditions we were using custom error codes for previously, we should switch to using the standard error codes in order to get better error reporting to the app. Bug: 8621516 This is a merge of https://widevine-internal-review.googlesource.com/#/c/5040/ from widevine cdm repo to android repo. Change-Id: I111a8825fa8fd8186a0d535cf19a7b08d9f35aee
This commit is contained in:
@@ -597,7 +597,7 @@ status_t WVDrmPlugin::mapOEMCryptoResult(OEMCryptoResult res) {
|
||||
case OEMCrypto_ERROR_SHORT_BUFFER:
|
||||
return kErrorIncorrectBufferSize;
|
||||
case OEMCrypto_ERROR_NO_DEVICE_KEY:
|
||||
return kErrorNeedProvisioning;
|
||||
return android::ERROR_DRM_NOT_PROVISIONED;
|
||||
case OEMCrypto_ERROR_INVALID_SESSION:
|
||||
return android::ERROR_DRM_SESSION_NOT_OPENED;
|
||||
case OEMCrypto_ERROR_UNKNOWN_FAILURE:
|
||||
|
||||
Reference in New Issue
Block a user