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