diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-03-06 14:33:22 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-03-06 14:33:22 +0100 |
commit | 12c0b0dd1507ccb6aa4d83ebc43f248816ff30f4 (patch) | |
tree | 87fc25064a93157e1dccf7e0e7d8c1c368b167d0 /epg.c | |
parent | 18d3851b72d35b6c658dd1fb71acff1a88c2c58a (diff) | |
download | vdr-12c0b0dd1507ccb6aa4d83ebc43f248816ff30f4.tar.gz vdr-12c0b0dd1507ccb6aa4d83ebc43f248816ff30f4.tar.bz2 |
Added log entries whenever the running status of an event changes
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 10 |
1 files changed, 7 insertions, 3 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.15 2004/03/06 10:12:50 kls Exp $ + * $Id: epg.c 1.16 2004/03/06 14:33:22 kls Exp $ */ #include "epg.h" @@ -527,11 +527,15 @@ const cEvent *cSchedule::GetEventAround(time_t Time) const return pe; } -void cSchedule::SetRunningStatus(cEvent *Event, int RunningStatus) +void cSchedule::SetRunningStatus(cEvent *Event, int RunningStatus, cChannel *Channel) { for (cEvent *p = events.First(); p; p = events.Next(p)) { - if (p == Event) + if (p == Event) { + if (Channel && p->RunningStatus() != RunningStatus && (RunningStatus > SI::RunningStatusNotRunning || p->RunningStatus() > SI::RunningStatusUndefined)) + if (Channel->Number() <= 30)//XXX maybe log only those that have timers??? + isyslog("channel %d (%s) event %s '%s' status %d", Channel->Number(), Channel->Name(), Event->GetTimeString(), Event->Title(), RunningStatus); p->SetRunningStatus(RunningStatus); + } else if (RunningStatus >= SI::RunningStatusPausing && p->RunningStatus() > SI::RunningStatusNotRunning) p->SetRunningStatus(SI::RunningStatusNotRunning); } |