driver/scanepg.cpp: return handled for events not handled in other code,

should fix crashes on double-free problem


Origin commit data
------------------
Commit: d4cf498279
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-10-20 (Sun, 20 Oct 2013)
This commit is contained in:
[CST] Focus
2013-10-20 14:02:09 +04:00
parent 0dfb948ffa
commit 92079d91d9

View File

@@ -155,8 +155,11 @@ void CEpgScan::StopStandby()
int CEpgScan::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data) int CEpgScan::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data)
{ {
if (!g_settings.epg_scan || (!standby && (CFEManager::getInstance()->getEnabledCount() <= 1))) if (!g_settings.epg_scan || (!standby && (CFEManager::getInstance()->getEnabledCount() <= 1))) {
if ((msg == NeutrinoMessages::EVT_EIT_COMPLETE) || (msg == NeutrinoMessages::EVT_BACK_ZAP_COMPLETE))
return messages_return::handled;
return messages_return::unhandled; return messages_return::unhandled;
}
CZapitChannel * newchan; CZapitChannel * newchan;
if(msg == NeutrinoMessages::EVT_ZAP_COMPLETE) { if(msg == NeutrinoMessages::EVT_ZAP_COMPLETE) {