diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2ddbf747..1d1bf103 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -64,6 +64,8 @@ Matthias Schniedermeyer for suggesting the SVDRP command CLRE for reporting a bug in handling one-shot timers that were already recording and had their start time changed into the future + for suggesting to give the timer status a bit that is set when that timer + is currently recording Miha Setina for translating OSD texts to the Slovenian language diff --git a/HISTORY b/HISTORY index 32ab89fb..3e84b446 100644 --- a/HISTORY +++ b/HISTORY @@ -3474,7 +3474,7 @@ Video Disk Recorder Revision History - Added a missing cMutexLock to cRemote::HasKeys() (thanks to Wolfgang Rohdewald). - All log entries regarding timers now contain a short description of the timer. -2005-05-05: Version 1.3.24 +2005-05-07: Version 1.3.24 - Now including the optional user defined Make.config from the 'libsi' Makefile (thanks to Ville Skyttä). @@ -3500,3 +3500,5 @@ Video Disk Recorder Revision History this one). - Since there are several places in thread.c where a timeout value is calculated, this has been put into a separate function. +- The timer status now has a new bit that is set when that timer is currently + recording (suggested by Matthias Schniedermeyer). See man vdr(5) for details. 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"); } diff --git a/timers.h b/timers.h index ae83f5b6..28b3dd50 100644 --- a/timers.h +++ b/timers.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.h 1.18 2005/03/20 14:47:45 kls Exp $ + * $Id: timers.h 1.19 2005/05/07 10:36:35 kls Exp $ */ #ifndef __TIMERS_H @@ -19,6 +19,7 @@ enum eTimerFlags { tfNone = 0x0000, tfActive = 0x0001, tfInstant = 0x0002, tfVps = 0x0004, + tfRecording = 0x0008, tfAll = 0xFFFF, }; enum eTimerMatch { tmNone, tmPartial, tmFull }; diff --git a/vdr.5 b/vdr.5 index 5333be7c..96136a1a 100644 --- a/vdr.5 +++ b/vdr.5 @@ -8,7 +8,7 @@ .\" License as specified in the file COPYING that comes with the .\" vdr distribution. .\" -.\" $Id: vdr.5 1.35 2005/03/19 15:20:47 kls Exp $ +.\" $Id: vdr.5 1.36 2005/05/07 10:40:23 kls Exp $ .\" .TH vdr 5 "19 Mar 2005" "1.3.23" "Video Disk Recorder Files" .SH NAME @@ -210,6 +210,7 @@ l l. \fB1\fR@the timer is active (and will record if it hits) \fB2\fR@this is an instant recording timer \fB4\fR@this timer uses VPS +\fB8\fR@this timer is currently recording (may only be up-to-date with SVDRP) .TE Bits other than these can be used by external programs to mark active timers and recognize if the user has modified them. When a user modifies an active