mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
CNeutrinoEventList::findEvents - fix iterator
This commit is contained in:
@@ -1074,17 +1074,16 @@ bool CNeutrinoEventList::findEvents(void)
|
|||||||
}
|
}
|
||||||
CEitManager::getInstance()->getEventsServiceKey(0,evtlist, m_search_epg_item,m_search_keyword, true);//all_chann
|
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()){
|
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);
|
map_it = ch_id_map.find(e->channelID);
|
||||||
if (map_it != ch_id_map.end()){
|
if (map_it != ch_id_map.end()){
|
||||||
e->channelID = map_it->second;//map channelID48 to channelID
|
e->channelID = map_it->second;//map channelID48 to channelID
|
||||||
++e;
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
evtlist.erase(e);// remove event for not found channels in channelList
|
evtlist.erase(e--);// remove event for not found channels in channelList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user