- miscsettings_menu: allow to reset movieplayer plugin

This commit is contained in:
svenhoefer
2016-02-22 21:06:46 +01:00
parent 0f771856ab
commit a4bd8cc5a8
7 changed files with 25 additions and 14 deletions

View File

@@ -375,12 +375,20 @@ int CNVODChangeExec::exec(CMenuTarget* parent, const std::string & actionKey)
int CMoviePluginChangeExec::exec(CMenuTarget* parent, const std::string & actionKey)
{
int sel= atoi(actionKey.c_str());
parent->hide();
if (sel>=0)
if (parent)
parent->hide();
if (actionKey == "---")
{
g_settings.movieplayer_plugin=g_PluginList->getName(sel);
g_settings.movieplayer_plugin = actionKey;
}
else
{
int sel = atoi(actionKey.c_str());
if (sel >= 0)
g_settings.movieplayer_plugin = g_PluginList->getName(sel);
}
return menu_return::RETURN_EXIT;
}