summaryrefslogtreecommitdiff
path: root/drm/1.0/default/CryptoPlugin.cpp
diff options
context:
space:
mode:
authorRahul Frias <rfrias@google.com>2017-02-27 19:17:30 -0800
committerRahul Frias <rfrias@google.com>2017-02-28 20:56:13 +0000
commitabd4e11c9db8717e865003eae0d83c2963dff9c1 (patch)
tree6927eeaaa3a450acf1d41a4a8d64f633071eae7e /drm/1.0/default/CryptoPlugin.cpp
parent7838c84800cd4e13db81b8af10cedfcc13eaf6f1 (diff)
Correct reporting of errors in MediaCrypto
Legacy error codes need to be converted into new Status values before being reported. Decryption errors (that were negative) were changed to absolute values. This caused their translation to new Status values to fail. b/35634335 Test: Verified with GtsExoPlayerTestCases. Some failures, but those are unrelated to this CL and will be addressed separately. Change-Id: I995cac33cb2725d02b0f1a3922e522ce07a9d1be
Diffstat (limited to 'drm/1.0/default/CryptoPlugin.cpp')
-rw-r--r--drm/1.0/default/CryptoPlugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/1.0/default/CryptoPlugin.cpp b/drm/1.0/default/CryptoPlugin.cpp
index 4a4171b66d..9c51b15d17 100644
--- a/drm/1.0/default/CryptoPlugin.cpp
+++ b/drm/1.0/default/CryptoPlugin.cpp
@@ -144,7 +144,7 @@ namespace implementation {
status = android::OK;
bytesWritten = result;
} else {
- status = -result;
+ status = result;
bytesWritten = 0;
}