summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-28 14:00:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-28 14:00:28 +0100
commit457f5dd14c426c7324a7987c4bcd7f9b2b641b6d (patch)
tree6f2d2d38abfdc9474aa3eb01fc4bb1bc6f0e4d56 /epg.c
parent9887c0765bb2e2653dfc0325e8b6784084787102 (diff)
downloadvdr-457f5dd14c426c7324a7987c4bcd7f9b2b641b6d.tar.gz
vdr-457f5dd14c426c7324a7987c4bcd7f9b2b641b6d.tar.bz2
The status changes of EPG events are now logged for all channels that have timers
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epg.c b/epg.c
index 2f88af9a..9b24da46 100644
--- a/epg.c
+++ b/epg.c
@@ -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.64 2006/02/26 15:07:17 kls Exp $
+ * $Id: epg.c 1.65 2006/02/28 13:56:05 kls Exp $
*/
#include "epg.h"
@@ -156,8 +156,7 @@ void cEvent::SetVersion(uchar Version)
void cEvent::SetRunningStatus(int RunningStatus, cChannel *Channel)
{
- if (Channel && runningStatus != RunningStatus && (RunningStatus > SI::RunningStatusNotRunning || runningStatus > SI::RunningStatusUndefined))
- if (Channel->Number() <= 30)//XXX maybe log only those that have timers???
+ if (Channel && runningStatus != RunningStatus && (RunningStatus > SI::RunningStatusNotRunning || runningStatus > SI::RunningStatusUndefined) && Channel->HasTimer())
isyslog("channel %d (%s) event %s '%s' status %d", Channel->Number(), Channel->Name(), *GetTimeString(), Title(), RunningStatus);
runningStatus = RunningStatus;
}