diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-11 15:48:54 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-11 15:48:54 +0200 |
commit | f7fff8b7be0cf0017cd83302439d3b44048669dc (patch) | |
tree | ccf8bcc398037f983e872a59029ec7ca506f93e9 /config.c | |
parent | 0b73f060d0a3b72bfac3da139d2cb0e40b1a78bc (diff) | |
download | vdr-f7fff8b7be0cf0017cd83302439d3b44048669dc.tar.gz vdr-f7fff8b7be0cf0017cd83302439d3b44048669dc.tar.bz2 |
If there is no free DVB device to record, the log message will now be given only once
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.53 2001/08/11 08:38:11 kls Exp $ + * $Id: config.c 1.54 2001/08/11 15:34:42 kls Exp $ */ #include "config.h" @@ -320,7 +320,7 @@ char *cTimer::buffer = NULL; cTimer::cTimer(bool Instant) { startTime = stopTime = 0; - recording = false; + recording = pending = false; active = Instant; cChannel *ch = Channels.GetByNumber(cDvbApi::CurrentChannel()); channel = ch ? ch->number : 0; @@ -343,7 +343,7 @@ cTimer::cTimer(bool Instant) cTimer::cTimer(const cEventInfo *EventInfo) { startTime = stopTime = 0; - recording = false; + recording = pending = false; active = true; cChannel *ch = Channels.GetByServiceID(EventInfo->GetServiceID()); channel = ch ? ch->number : 0; @@ -570,6 +570,11 @@ void cTimer::SetRecording(bool Recording) isyslog(LOG_INFO, "timer %d %s", Index() + 1, recording ? "start" : "stop"); } +void cTimer::SetPending(bool Pending) +{ + pending = Pending; +} + cTimer *cTimer::GetMatch(void) { time_t t = time(NULL); // all timers must be checked against the exact same time to correctly handle Priority! |