- plugins: simplify integratePlugins(); ...

* CPluginsExec(): switch to singleton
* move CPluginsExec() to pluginlist.cpp|h
  because it's not really a settings_helper
This commit is contained in:
svenhoefer
2014-11-10 22:41:08 +01:00
parent 02137ca987
commit 389c4c232f
11 changed files with 55 additions and 52 deletions

View File

@@ -260,9 +260,8 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p)
personalize->addPersonalizedItems();
//add I_TYPE_MULTIMEDIA plugins
CPluginsExec pluginsExec;
unsigned int nextShortcut = (unsigned int)media->getNextShortcut();
media->integratePlugins(&pluginsExec, CPlugins::I_TYPE_MULTIMEDIA, nextShortcut);
media->integratePlugins(CPlugins::I_TYPE_MULTIMEDIA, nextShortcut);
res = media->exec(NULL, "");
delete media;