Fix some vendor-specific error reporting
Some decryption errors were being reported as vendor-unique diagnostic codes that were not generally actionable by an app. Recently a new MediaCodec.CryptoException code was added so these types of failures can be reported as ERROR_UNSUPPORTED_OPERATION, in which case the app can use an alternate DRM configuration in a way that does not require vendor-specific handling. This change remaps this class of decrypt errors to the new error code. Merge of http://go/wvgerrit/17110 bug: 25929554 Change-Id: Iff44c2f04f9ee28d065fb17d59bca4032c5d55ca
This commit is contained in:
@@ -359,6 +359,8 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
return android::ERROR_DRM_UNKNOWN;
|
||||
case wvcdm::SECURE_BUFFER_REQUIRED:
|
||||
return android::ERROR_DRM_CANNOT_HANDLE;
|
||||
case wvcdm::DECRYPT_ERROR:
|
||||
return android::ERROR_DRM_CANNOT_HANDLE;
|
||||
case wvcdm::UNUSED_1:
|
||||
case wvcdm::UNUSED_2:
|
||||
case wvcdm::UNUSED_3:
|
||||
|
||||
Reference in New Issue
Block a user