summaryrefslogtreecommitdiffstats
path: root/media/libmedia/ICrypto.cpp
diff options
context:
space:
mode:
authorJeff Tinker <jtinker@google.com>2013-03-22 15:26:39 -0700
committerJeff Tinker <jtinker@google.com>2013-03-22 15:26:39 -0700
commit5beac28a34e557251bd4bbd77a6d9303a69d4319 (patch)
treebddefa894193bdb535c5f0090e7edab2e3d9eca4 /media/libmedia/ICrypto.cpp
parent3a29ea87c8fdcd45987bcc9cd2b68961ac971d27 (diff)
downloadframeworks_av-5beac28a34e557251bd4bbd77a6d9303a69d4319.zip
frameworks_av-5beac28a34e557251bd4bbd77a6d9303a69d4319.tar.gz
frameworks_av-5beac28a34e557251bd4bbd77a6d9303a69d4319.tar.bz2
Load crypto plugins from additional shared libraries
Currently crypto plugins are expected to be in libdrmdecrypt.so. When there are multiple plugins supporting different schemes, this approach requires source code integration across vendors which is unmanagable. Also, for integration with MediaDrm where the crypto keys are obtained from a drm server, the MediaCrypto plugin needs to interoperate with the MediaDrm plugin. This change allows {MediaCrypto, MediaDrm} pairs that are logically related to be implemented in a common shared library. Change-Id: I7f6638f29171f91609fc2d944396365568630b56
Diffstat (limited to 'media/libmedia/ICrypto.cpp')
-rw-r--r--media/libmedia/ICrypto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/ICrypto.cpp b/media/libmedia/ICrypto.cpp
index 2defc2d..98b183a 100644
--- a/media/libmedia/ICrypto.cpp
+++ b/media/libmedia/ICrypto.cpp
@@ -48,7 +48,7 @@ struct BpCrypto : public BpInterface<ICrypto> {
return reply.readInt32();
}
- virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]) const {
+ virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]) {
Parcel data, reply;
data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
data.write(uuid, 16);