CPluginExec: avoid crash when pluginlist is empty

Origin commit data
------------------
Commit: 396be41ab3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-20 (Fri, 20 Feb 2015)
This commit is contained in:
Stefan Seyfried
2015-02-20 08:55:45 +01:00
committed by vanhofen
parent f3fdaafa15
commit 6c6fbfbe4a

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);