summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-02-21 13:56:20 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-02-21 13:56:20 +0100
commit340d9bcb0fdf49fbe2740dde29af37f46887c122 (patch)
tree6774816a56d54487b98faa344d131ef939a8f12e /eit.c
parent15e6b261bac16b37b0cedb4bd634d7e9b1af887d (diff)
downloadvdr-340d9bcb0fdf49fbe2740dde29af37f46887c122.tar.gz
vdr-340d9bcb0fdf49fbe2740dde29af37f46887c122.tar.bz2
The EPG data is now always kept sorted chronologically in the internal data structures
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/eit.c b/eit.c
index 857e06e3..0ef3590b 100644
--- a/eit.c
+++ b/eit.c
@@ -8,7 +8,7 @@
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
*
- * $Id: eit.c 1.87 2004/02/21 12:20:26 kls Exp $
+ * $Id: eit.c 1.88 2004/02/21 13:26:52 kls Exp $
*/
#include "eit.h"
@@ -43,6 +43,8 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data)
Schedules->Add(pSchedule);
}
+ bool Modified = false;
+
SI::EIT::Event SiEitEvent;
for (SI::Loop::Iterator it; eventLoop.hasNext(it); ) {
SiEitEvent = eventLoop.getNext(it);
@@ -188,7 +190,10 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data)
if (LinkChannels)
channel->SetLinkChannels(LinkChannels);
+ Modified = true;
}
+ if (Modified)
+ pSchedule->Sort();
}
// --- cTDT ------------------------------------------------------------------