// From NodeRegistrySharedLibraryInterface void UnregisterAllNodes(PVPlayerNodeRegistryInterface* aRegistry, OsclAny* aContext) { if (NULL != aContext) { Oscl_Vector<PVPlayerNodeInfo, OsclMemAllocator>* nodeList = (Oscl_Vector<PVPlayerNodeInfo, OsclMemAllocator> *)aContext; while (!nodeList->empty()) { PVPlayerNodeInfo tmpnode = nodeList->front(); OSCL_DELETE(tmpnode.iSharedLibrary); aRegistry->UnregisterNode(tmpnode); nodeList->erase(nodeList->begin()); } delete nodeList; } };
void UnregisterAllRecognizers(PVPlayerRecognizerRegistryInterface* aRegistry, OsclAny* aContext) { if (NULL != aContext) { Oscl_Vector<PVMFRecognizerPluginFactory*, OsclMemAllocator>* pluginList = (Oscl_Vector<PVMFRecognizerPluginFactory*, OsclMemAllocator>*)aContext; while (!pluginList->empty()) { PVMFRecognizerPluginFactory* tmpfac = pluginList->front(); aRegistry->UnregisterRecognizer(tmpfac); pluginList->erase(pluginList->begin()); OSCL_DELETE(tmpfac); } delete pluginList; } };