driver/scanepg.cpp: change handleMsg() to return event handled/unhandled

Origin commit data
------------------
Commit: 3863008e3a
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-10-14 (Mon, 14 Oct 2013)
This commit is contained in:
[CST] Focus
2013-10-14 12:45:23 +04:00
parent a23a77f605
commit 741d8dd1dd
2 changed files with 7 additions and 3 deletions

View File

@@ -153,15 +153,16 @@ void CEpgScan::StopStandby()
CZapit::getInstance()->SetCurrentChannelID(live_channel_id);
}
void 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)))
return;
return messages_return::unhandled;
CZapitChannel * newchan;
if(msg == NeutrinoMessages::EVT_ZAP_COMPLETE) {
AddTransponders();
INFO("EVT_ZAP_COMPLETE, scan map size: %d\n", scanmap.size());
return messages_return::handled;
}
else if (msg == NeutrinoMessages::EVT_EIT_COMPLETE) {
t_channel_id chid = *(t_channel_id *)data;
@@ -173,6 +174,7 @@ void CEpgScan::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data)
INFO("EIT read complete [" PRINTF_CHANNEL_ID_TYPE "], scan map size: %d", chid, scanmap.size());
Next();
return messages_return::handled;
}
else if (msg == NeutrinoMessages::EVT_BACK_ZAP_COMPLETE) {
t_channel_id chid = *(t_channel_id *)data;
@@ -194,7 +196,9 @@ void CEpgScan::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data)
}
}
}
return messages_return::handled;
}
return messages_return::unhandled;
}
void CEpgScan::EnterStandby()