diff --git a/cas/1.0/default/MediaCasService.cpp b/cas/1.0/default/MediaCasService.cpp index ca4322461e..dbdd0087db 100644 --- a/cas/1.0/default/MediaCasService.cpp +++ b/cas/1.0/default/MediaCasService.cpp @@ -69,7 +69,7 @@ Return> MediaCasService::createPlugin( if (mCasLoader.findFactoryForScheme(CA_system_id, &library, &factory)) { CasPlugin *plugin = NULL; sp casImpl = new CasImpl(listener); - if (factory->createPlugin(CA_system_id, (uint64_t)casImpl.get(), + if (factory->createPlugin(CA_system_id, casImpl.get(), &CasImpl::OnEvent, &plugin) == OK && plugin != NULL) { casImpl->init(library, plugin); result = casImpl;