mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user