gui/eventlist.cpp: use epg id to get events

Origin commit data
------------------
Branch: ni/coolstream
Commit: ad153ed851
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-06-02 (Tue, 02 Jun 2015)


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

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2015-06-02 15:41:51 +03:00
parent 6e5a13d7cf
commit 3f0a64b6d8

View File

@@ -250,6 +250,11 @@ int CEventList::exec(const t_channel_id channel_id, const std::string& channelna
neutrino_msg_data_t data; neutrino_msg_data_t data;
bool in_search = false; bool in_search = false;
showfollow = false; showfollow = false;
t_channel_id epg_id = channel_id;
CZapitChannel * ch = CServiceManager::getInstance()->FindChannel(channel_id);
if (ch)
epg_id = ch->getEpgID();
full_width = frameBuffer->getScreenWidthRel(); full_width = frameBuffer->getScreenWidthRel();
x = getScreenStartX(full_width); x = getScreenStartX(full_width);
@@ -314,7 +319,7 @@ int CEventList::exec(const t_channel_id channel_id, const std::string& channelna
copy(followlist.begin(), followlist.end(), ii); copy(followlist.begin(), followlist.end(), ii);
showfollow = true; showfollow = true;
}else{ }else{
readEvents(channel_id); readEvents(epg_id);
} }
UpdateTimerList(); UpdateTimerList();
@@ -542,7 +547,7 @@ int CEventList::exec(const t_channel_id channel_id, const std::string& channelna
in_search = false; in_search = false;
m_showChannel = false; m_showChannel = false;
paintHead(channel_id, channelname); paintHead(channel_id, channelname);
readEvents(channel_id); readEvents(epg_id);
paint(channel_id); paint(channel_id);
showFunctionBar(true, channel_id); showFunctionBar(true, channel_id);
} else { } else {