nhttpd use epg id to get events

This commit is contained in:
Jacek Jendrzej
2016-05-11 12:52:11 +02:00
parent c416cf1c31
commit 52f4312aef
3 changed files with 19 additions and 4 deletions

View File

@@ -295,7 +295,13 @@ void CNeutrinoAPI::GetChannelEvent(t_channel_id channel_id, CChannelEvent &event
{
OpenThreads::ScopedPointerLock<OpenThreads::Mutex> lock(pmutex);
event.eventID = 0;
CChannelEvent * evt = ChannelListEvents[channel_id];
t_channel_id epg_id = channel_id;
CZapitChannel * ch = CServiceManager::getInstance()->FindChannel(channel_id);
if (ch)
epg_id = ch->getEpgID();
CChannelEvent * evt = ChannelListEvents[epg_id];
if (evt)
event = *evt;
}