scanepg: only react to the correct EVT_EIT_COMPLETE

Origin commit data
------------------
Commit: 55be585994
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-10 (Sun, 10 Jan 2016)
This commit is contained in:
Stefan Seyfried
2016-01-10 15:05:37 +01:00
parent 6a9f9c43dc
commit 9a31562446

View File

@@ -282,8 +282,13 @@ int CEpgScan::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data)
return messages_return::handled;
}
else if (msg == NeutrinoMessages::EVT_EIT_COMPLETE) {
scan_in_progress = false;
t_channel_id chid = *(t_channel_id *)data;
if (chid != next_chid) {
/* live channel can send EVT_EIT_COMPLETE, even if no EPG scan is running */
INFO("EIT read complete [" PRINTF_CHANNEL_ID_TYPE "]!=[" PRINTF_CHANNEL_ID_TYPE "], ignoring", chid, next_chid);
return messages_return::handled;
}
scan_in_progress = false;
newchan = CServiceManager::getInstance()->FindChannel(chid);
if (newchan) {
scanned.insert(newchan->getTransponderId());