Fix for b/4429363: Unable to play rented movie getting error "KEYBOX IS INVALID"
Fixed race condition on initialization of WV drm plugin. Change-Id: Ic4bfd40fe3c241a50da9c182e9f25c98b9a007f2
This commit is contained in:
@@ -38,6 +38,8 @@ using namespace android;
|
|||||||
|
|
||||||
// This extern "C" is mandatory to be managed by TPlugInManager
|
// This extern "C" is mandatory to be managed by TPlugInManager
|
||||||
extern "C" IDrmEngine* create() {
|
extern "C" IDrmEngine* create() {
|
||||||
|
_ah006(android_printbuf);
|
||||||
|
libocs_setup();
|
||||||
return new WVMDrmPlugin();
|
return new WVMDrmPlugin();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,8 +77,6 @@ WVMDrmPlugin::~WVMDrmPlugin() {
|
|||||||
*/
|
*/
|
||||||
status_t WVMDrmPlugin::onInitialize(int uniqueId) {
|
status_t WVMDrmPlugin::onInitialize(int uniqueId) {
|
||||||
//LOGD("WVMDrmPlugin::onInitialize : %d", uniqueId);
|
//LOGD("WVMDrmPlugin::onInitialize : %d", uniqueId);
|
||||||
_ah006(android_printbuf);
|
|
||||||
libocs_setup();
|
|
||||||
return DRM_NO_ERROR;
|
return DRM_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user