diff options
| author | Andreas Huber <andih@google.com> | 2012-04-19 13:51:16 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-19 13:51:16 -0700 |
| commit | 8d6086781c79620ce6133df7bd27f0efdee6b4e6 (patch) | |
| tree | e69c38010ec52f70406054c1dc8152d44c2a94c3 /media/libmediaplayerservice | |
| parent | 1345ef0f49f83f37953e6d30616611a92294144a (diff) | |
| parent | 5b8987e7de9d04b09153f329c680d2316cdb44ec (diff) | |
| download | frameworks_av-8d6086781c79620ce6133df7bd27f0efdee6b4e6.zip frameworks_av-8d6086781c79620ce6133df7bd27f0efdee6b4e6.tar.gz frameworks_av-8d6086781c79620ce6133df7bd27f0efdee6b4e6.tar.bz2 | |
Merge "Allow propagation of error information and description from the CryptoPlugin to"
Diffstat (limited to 'media/libmediaplayerservice')
| -rw-r--r-- | media/libmediaplayerservice/Crypto.cpp | 7 | ||||
| -rw-r--r-- | media/libmediaplayerservice/Crypto.h | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/media/libmediaplayerservice/Crypto.cpp b/media/libmediaplayerservice/Crypto.cpp index 574ae71..d35d5b1 100644 --- a/media/libmediaplayerservice/Crypto.cpp +++ b/media/libmediaplayerservice/Crypto.cpp @@ -22,6 +22,7 @@ #include <media/hardware/CryptoAPI.h> #include <media/stagefright/foundation/ADebug.h> +#include <media/stagefright/foundation/AString.h> #include <media/stagefright/foundation/hexdump.h> #include <media/stagefright/MediaErrors.h> @@ -147,7 +148,8 @@ status_t Crypto::decrypt( CryptoPlugin::Mode mode, const void *srcPtr, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, - void *dstPtr) { + void *dstPtr, + AString *errorDetailMsg) { Mutex::Autolock autoLock(mLock); if (mInitCheck != OK) { @@ -159,7 +161,8 @@ status_t Crypto::decrypt( } return mPlugin->decrypt( - secure, key, iv, mode, srcPtr, subSamples, numSubSamples, dstPtr); + secure, key, iv, mode, srcPtr, subSamples, numSubSamples, dstPtr, + errorDetailMsg); } } // namespace android diff --git a/media/libmediaplayerservice/Crypto.h b/media/libmediaplayerservice/Crypto.h index 74de2b5..c5aa3c6 100644 --- a/media/libmediaplayerservice/Crypto.h +++ b/media/libmediaplayerservice/Crypto.h @@ -49,7 +49,8 @@ struct Crypto : public BnCrypto { CryptoPlugin::Mode mode, const void *srcPtr, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, - void *dstPtr); + void *dstPtr, + AString *errorDetailMsg); private: mutable Mutex mLock; |
