CNeutrinoEventList::findEvents - fix iterator

Origin commit data
------------------
Branch: ni/coolstream
Commit: 917e95aea3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-05-31 (Fri, 31 May 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2013-05-31 18:54:48 +02:00
parent a2055b2b47
commit 67cc95acc0

View File

@@ -1074,17 +1074,16 @@ bool CNeutrinoEventList::findEvents(void)
}
CEitManager::getInstance()->getEventsServiceKey(0,evtlist, m_search_epg_item,m_search_keyword, true);//all_chann
std::map<t_channel_id, t_channel_id>::iterator map_it;
CChannelEventList::iterator e;
if(!evtlist.empty()){
for ( e=evtlist.begin(); e!=evtlist.end();){
std::map<t_channel_id, t_channel_id>::iterator map_it;
CChannelEventList::iterator e;
for ( e=evtlist.begin(); e!=evtlist.end();++e){
map_it = ch_id_map.find(e->channelID);
if (map_it != ch_id_map.end()){
e->channelID = map_it->second;//map channelID48 to channelID
++e;
}
else{
evtlist.erase(e);// remove event for not found channels in channelList
evtlist.erase(e--);// remove event for not found channels in channelList
}
}
}