diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-08-05 10:15:34 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-08-05 10:15:34 +0200 |
commit | c325fe76ee94f0335486269362d0404def27d8d1 (patch) | |
tree | 9117c4c79e26293232c845082cf8ee9b8373f0db /eit.c | |
parent | ae4633feb04b4665ea561dea4c88dea28e8d9032 (diff) | |
download | vdr-c325fe76ee94f0335486269362d0404def27d8d1.tar.gz vdr-c325fe76ee94f0335486269362d0404def27d8d1.tar.bz2 |
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)
Diffstat (limited to 'eit.c')
-rw-r--r-- | eit.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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.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(); |