remove obsolete rtl workarounds (thx Gaucho316)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1492 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 339b869b64
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-05-25 (Wed, 25 May 2011)

Origin message was:
------------------
- remove obsolete rtl workarounds (thx Gaucho316)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1492 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
gixxpunk
2011-05-25 16:47:36 +00:00
parent 2e2bb3fe7a
commit 199b44ea27
2 changed files with 1 additions and 22 deletions

View File

@@ -1053,18 +1053,6 @@ void CEpgData::GetPrevNextEPGData( uint64_t id, time_t* startzeit )
break;
}
}
/* Houdini: dirty RTL double event workaround, if prev/next event has same starttime as actual event skip it */
if ((prev_zeit == *startzeit) && ((i-1) > 0))
{
prev_id = evtlist[i- 2].eventID;
prev_zeit = evtlist[i- 2].startTime;
}
if ((next_zeit == *startzeit) && ((i+1) < (evtlist.size()- 1)))
{
next_id = evtlist[i+ 2].eventID;
next_zeit = evtlist[i+ 2].startTime;
}
}
//

View File

@@ -171,18 +171,9 @@ void EventList::readEvents(const t_channel_id channel_id)
}
// Houdini added for Private Premiere EPG, start sorted by start date/time
sort(evtlist.begin(),evtlist.end(),sortByDateTime);
// Houdini: dirty workaround for RTL double events, remove them
CChannelEventList::iterator e2;
for ( e=evtlist.begin(); e!=evtlist.end(); ++e )
{
e2 = e+1;
if ( e2!=evtlist.end() && (e->startTime == e2->startTime)) {
evtlist.erase(e2);
}
}
timerlist.clear();
g_Timerd->getTimerList (timerlist);
}
current_event = (unsigned int)-1;