CPluginExec: avoid crash when pluginlist is empty

This commit is contained in:
Stefan Seyfried
2015-02-17 21:16:17 +01:00
parent a846cb1a97
commit c9d1854dd5

View File

@@ -162,6 +162,7 @@ int CPluginsExec::exec(CMenuTarget* parent, const std::string & actionKey)
if (actionKey == "teletext") { if (actionKey == "teletext") {
g_RCInput->postMsg(CRCInput::RC_timeout, 0); g_RCInput->postMsg(CRCInput::RC_timeout, 0);
g_RCInput->postMsg(CRCInput::RC_text, 0); g_RCInput->postMsg(CRCInput::RC_text, 0);
return menu_return::RETURN_EXIT;
} }
else if (sel >= 0) else if (sel >= 0)
g_PluginList->startPlugin(sel); g_PluginList->startPlugin(sel);