From c325fe76ee94f0335486269362d0404def27d8d1 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 5 Aug 2006 10:15:34 +0200 Subject: Fixed handling the running status of EPG events before the currently running one, in case they are added after the current event (cont'd from version 1.4.1-2) --- eit.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'eit.c') diff --git a/eit.c b/eit.c index d9714ef8..fc65bc9c 100644 --- a/eit.c +++ b/eit.c @@ -8,7 +8,7 @@ * Robert Schneider and Rolf Hakenes . * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg . * - * $Id: eit.c 1.119 2006/07/22 09:21:59 kls Exp $ + * $Id: eit.c 1.120 2006/08/05 10:01:21 kls Exp $ */ #include "eit.h" @@ -94,6 +94,8 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo pEvent->SetStartTime(SiEitEvent.getStartTime()); pEvent->SetDuration(SiEitEvent.getDuration()); } + if (newEvent) + pSchedule->AddEvent(newEvent); if (Tid == 0x4E) { // we trust only the present/following info on the actual TS if (SiEitEvent.getRunningStatus() >= SI::RunningStatusNotRunning) pSchedule->SetRunningStatus(pEvent, SiEitEvent.getRunningStatus(), channel); @@ -240,9 +242,6 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo delete ExtendedEventDescriptors; delete ShortEventDescriptor; - if (newEvent) - pSchedule->AddEvent(newEvent); - pEvent->SetComponents(Components); pEvent->FixEpgBugs(); -- cgit v1.2.3