WVDrmPlugin: map OEMCryptoResult to drm@1.4 Status

Bug: 162255728
Change-Id: Ieb7de4e3d40e132ab17d5907132879714ef7e918
Test: MediaDrmTest#testExceptionMessage
This commit is contained in:
Robert Shih
2021-02-14 09:02:28 +00:00
parent bbfa2b4ff4
commit 0450bfcda1

View File

@@ -2129,7 +2129,7 @@ Status WVDrmPlugin::mapOEMCryptoResult(OEMCryptoResult res) {
FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
ALOGW("Returns UNKNOWN error for legacy status: %d", res);
return Status::ERROR_DRM_UNKNOWN;
return static_cast<Status>(::drm::V1_4::Status::GENERAL_OEM_ERROR);
}
}