summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-07 11:10:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-07 11:10:56 +0200
commit8b137f8ce5b901a7ef9193644832827339deee2f (patch)
treedd21d564186dccf77ac27baf3c403dabaea31edf /timers.c
parent9f7166a8915596fca3656d4b2627dd0bcc27ddaa (diff)
downloadvdr-8b137f8ce5b901a7ef9193644832827339deee2f.tar.gz
vdr-8b137f8ce5b901a7ef9193644832827339deee2f.tar.bz2
Added status flag for timers that are currently recording
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/timers.c b/timers.c
index 2dded66e..9e31f604 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 1.30 2005/03/20 14:50:37 kls Exp $
+ * $Id: timers.c 1.31 2005/05/07 11:10:56 kls Exp $
*/
#include "timers.h"
@@ -441,6 +441,10 @@ void cTimer::SetEvent(const cSchedule *Schedule, const cEvent *Event)
void cTimer::SetRecording(bool Recording)
{
recording = Recording;
+ if (recording)
+ SetFlags(tfRecording);
+ else
+ ClrFlags(tfRecording);
isyslog("timer %s %s", *ToDescr(), recording ? "start" : "stop");
}