mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-18 10:51:07 +02:00
fix set timer in findEvents
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@946 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: d8489c3abc
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-12-18 (Sat, 18 Dec 2010)
Origin message was:
------------------
-fix set timer in findEvents
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@946 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -171,7 +171,7 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
|
||||
unsigned int count;
|
||||
for (count = from; count < to; count++){
|
||||
events.clear();
|
||||
sectionsd_getEventsServiceKey(chanlist[count]->channel_id &0xFFFFFFFFFFFFULL, events);
|
||||
sectionsd_getEventsServiceKey(chanlist[count]->channel_id, events);
|
||||
chanlist[count]->nextEvent.startTime = (long)0x7fffffff;
|
||||
for ( CChannelEventList::iterator e= events.begin(); e != events.end(); ++e ) {
|
||||
if ((long)e->startTime > atime &&
|
||||
|
@@ -563,7 +563,7 @@ void EpgPlus::createChannelEntries (int selectedChannelEntryIndex)
|
||||
//printf("Going to get getEventsServiceKey for %llx\n", (channel->channel_id & 0xFFFFFFFFFFFFULL));
|
||||
//CChannelEventList channelEventList = g_Sectionsd->getEventsServiceKey (channel->channel->channel_id & 0xFFFFFFFFFFFFULL);
|
||||
CChannelEventList channelEventList;
|
||||
sectionsd_getEventsServiceKey(channel->channel_id & 0xFFFFFFFFFFFFULL, channelEventList);
|
||||
sectionsd_getEventsServiceKey(channel->channel_id, channelEventList);
|
||||
//printf("channelEventList size %d\n", channelEventList.size());
|
||||
|
||||
int xPosEventEntry = this->eventsTableX;
|
||||
|
@@ -485,7 +485,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
start();
|
||||
//evtlist = g_Sectionsd->getEventsServiceKey(channel_id&0xFFFFFFFFFFFFULL);
|
||||
evtlist.clear();
|
||||
sectionsd_getEventsServiceKey(channel_id&0xFFFFFFFFFFFFULL, evtlist);
|
||||
sectionsd_getEventsServiceKey(channel_id, evtlist);
|
||||
// Houdini added for Private Premiere EPG start sorted by start date/time 2005-08-15
|
||||
sort(evtlist.begin(),evtlist.end(),sortByDateTime);
|
||||
}
|
||||
|
@@ -107,7 +107,7 @@ void EventList::readEvents(const t_channel_id channel_id)
|
||||
{
|
||||
//evtlist = g_Sectionsd->getEventsServiceKey(channel_id &0xFFFFFFFFFFFFULL);
|
||||
evtlist.clear();
|
||||
sectionsd_getEventsServiceKey(channel_id &0xFFFFFFFFFFFFULL, evtlist);
|
||||
sectionsd_getEventsServiceKey(channel_id , evtlist);
|
||||
time_t azeit=time(NULL);
|
||||
|
||||
CChannelEventList::iterator e;
|
||||
@@ -149,7 +149,7 @@ void EventList::readEvents(const t_channel_id channel_id)
|
||||
if (channel_id != channel_id2) {
|
||||
//evtlist2 = g_Sectionsd->getEventsServiceKey(channel_id2);
|
||||
evtlist2.clear();
|
||||
sectionsd_getEventsServiceKey(channel_id2 &0xFFFFFFFFFFFFULL, evtlist2);
|
||||
sectionsd_getEventsServiceKey(channel_id2 , evtlist2);
|
||||
|
||||
for (unsigned int loop=0 ; loop<evtlist2.size(); loop++ )
|
||||
{
|
||||
@@ -625,7 +625,7 @@ int EventList::exec(const t_channel_id channel_id, const std::string& channelnam
|
||||
hide();
|
||||
|
||||
//FIXME res = g_EpgData->show(evtlist[selected].sub ? GET_CHANNEL_ID_FROM_EVENT_ID(evtlist[selected].eventID) : channel_id, evtlist[selected].eventID, &evtlist[selected].startTime);
|
||||
res = g_EpgData->show(channel_id, evtlist[selected].eventID, &evtlist[selected].startTime);
|
||||
res = g_EpgData->show(evtlist[selected].channelID, evtlist[selected].eventID, &evtlist[selected].startTime);
|
||||
if ( res == menu_return::RETURN_EXIT_ALL )
|
||||
{
|
||||
loop = false;
|
||||
@@ -755,7 +755,7 @@ void EventList::paintItem(unsigned int pos, t_channel_id channel_idI)
|
||||
|
||||
if ( m_showChannel ) // show the channel if we made a event search only (which could be made through all channels ).
|
||||
{
|
||||
t_channel_id channel = evtlist[liststart+pos].get_channel_id();
|
||||
t_channel_id channel = evtlist[liststart+pos].channelID;
|
||||
datetime2_str += " ";
|
||||
datetime2_str += g_Zapit->getChannelName(channel);
|
||||
}
|
||||
@@ -980,7 +980,7 @@ bool EventList::findEvents(void)
|
||||
if(m_search_list == SEARCH_LIST_CHANNEL)
|
||||
{
|
||||
//g_Sectionsd->getEventsServiceKeySearchAdd(evtlist,m_search_channel_id & 0xFFFFFFFFFFFFULL,m_search_epg_item,m_search_keyword);
|
||||
sectionsd_getEventsServiceKey(m_search_channel_id & 0xFFFFFFFFFFFFULL, evtlist, m_search_epg_item,m_search_keyword);
|
||||
sectionsd_getEventsServiceKey(m_search_channel_id, evtlist, m_search_epg_item,m_search_keyword);
|
||||
}
|
||||
else if(m_search_list == SEARCH_LIST_BOUQUET)
|
||||
{
|
||||
@@ -989,7 +989,7 @@ bool EventList::findEvents(void)
|
||||
{
|
||||
channel_id = bouquetList->Bouquets[m_search_bouquet_id]->channelList->getChannelFromIndex(channel)->channel_id;
|
||||
//g_Sectionsd->getEventsServiceKeySearchAdd(evtlist,channel_id & 0xFFFFFFFFFFFFULL,m_search_epg_item,m_search_keyword);
|
||||
sectionsd_getEventsServiceKey(channel_id & 0xFFFFFFFFFFFFULL, evtlist, m_search_epg_item,m_search_keyword);
|
||||
sectionsd_getEventsServiceKey(channel_id, evtlist, m_search_epg_item,m_search_keyword);
|
||||
}
|
||||
}
|
||||
else if(m_search_list == SEARCH_LIST_ALL)
|
||||
@@ -1004,7 +1004,7 @@ bool EventList::findEvents(void)
|
||||
{
|
||||
channel_id = bouquetList->Bouquets[bouquet]->channelList->getChannelFromIndex(channel)->channel_id;
|
||||
//g_Sectionsd->getEventsServiceKeySearchAdd(evtlist,channel_id & 0xFFFFFFFFFFFFULL,m_search_epg_item,m_search_keyword);
|
||||
sectionsd_getEventsServiceKey(channel_id & 0xFFFFFFFFFFFFULL,evtlist, m_search_epg_item,m_search_keyword);
|
||||
sectionsd_getEventsServiceKey(channel_id,evtlist, m_search_epg_item,m_search_keyword);
|
||||
}
|
||||
}
|
||||
box.hide();
|
||||
|
@@ -614,7 +614,7 @@ void CInfoViewer::showTitle (const int ChanNum, const std::string & Channel, con
|
||||
if ((channel_id != new_channel_id) || (evtlist.empty())) {
|
||||
evtlist.clear();
|
||||
//evtlist = g_Sectionsd->getEventsServiceKey(new_channel_id & 0xFFFFFFFFFFFFULL);
|
||||
sectionsd_getEventsServiceKey(new_channel_id & 0xFFFFFFFFFFFFULL, evtlist);
|
||||
sectionsd_getEventsServiceKey(new_channel_id, evtlist);
|
||||
if (!evtlist.empty())
|
||||
sort(evtlist.begin(),evtlist.end(), sortByDateTime);
|
||||
new_chan = true;
|
||||
|
Reference in New Issue
Block a user