diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2006-10-29 17:00:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2006-10-29 17:00:00 +0100 |
commit | d45b4aba734515e7f6b007eae4360874059a5a2c (patch) | |
tree | 028918f282076dc6e94733600f3f2e7a2fe4a9d1 /epg.c | |
parent | f99e13afb489f75749f4f8d978759d104a2983f2 (diff) | |
download | vdr-patch-lnbsharing-d45b4aba734515e7f6b007eae4360874059a5a2c.tar.gz vdr-patch-lnbsharing-d45b4aba734515e7f6b007eae4360874059a5a2c.tar.bz2 |
Version 1.4.3-4vdr-1.4.3-4
- Fixed deleting EPG events that have a running status of "pausing" or higher.
- Fixed handling NITs with more than one delivery system descriptor tag for the
same transponder.
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.c 1.80 2006/10/07 13:47:28 kls Exp $ + * $Id: epg.c 1.81 2006/10/28 09:12:42 kls Exp $ */ #include "epg.h" @@ -664,6 +664,8 @@ cEvent *cSchedule::AddEvent(cEvent *Event) void cSchedule::DelEvent(cEvent *Event) { if (Event->schedule == this) { + if (hasRunning && Event->IsRunning()) + ClrRunningStatus(); UnhashEvent(Event); events.Del(Event); } @@ -742,8 +744,10 @@ void cSchedule::SetRunningStatus(cEvent *Event, int RunningStatus, cChannel *Cha hasRunning = false; for (cEvent *p = events.First(); p; p = events.Next(p)) { if (p == Event) { - if (p->RunningStatus() > SI::RunningStatusNotRunning || RunningStatus > SI::RunningStatusNotRunning) + if (p->RunningStatus() > SI::RunningStatusNotRunning || RunningStatus > SI::RunningStatusNotRunning) { p->SetRunningStatus(RunningStatus, Channel); + break; + } } else if (RunningStatus >= SI::RunningStatusPausing && p->StartTime() < Event->StartTime()) p->SetRunningStatus(SI::RunningStatusNotRunning); @@ -797,6 +801,8 @@ void cSchedule::DropOutdated(time_t SegmentStart, time_t SegmentEnd, uchar Table // We can't delete the event right here because a timer might have // a pointer to it, so let's set its id and start time to 0 to have it // "phased out": + if (hasRunning && p->IsRunning()) + ClrRunningStatus(); UnhashEvent(p); p->eventID = 0; p->startTime = 0; |