summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-04-06 09:58:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-04-06 09:58:36 +0200
commit3985f8dd499bfb16545dbcdc4e3bb1a6a736eb84 (patch)
treed66831d14ba4dcef267d948ab8be9c640b986fb2 /config.c
parentea6f46d5fbbdc2afef94750316904c0e5e031b64 (diff)
downloadvdr-3985f8dd499bfb16545dbcdc4e3bb1a6a736eb84.tar.gz
vdr-3985f8dd499bfb16545dbcdc4e3bb1a6a736eb84.tar.bz2
Fixed resetting the 'First day' timer parameter once the timer actually starts recording
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.c b/config.c
index 7104dcc2..66007379 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 1.96 2002/04/01 11:54:05 kls Exp $
+ * $Id: config.c 1.97 2002/04/06 09:58:36 kls Exp $
*/
#include "config.h"
@@ -606,14 +606,14 @@ bool cTimer::Matches(time_t t)
if ((!firstday || a >= firstday) && t <= b) {
startTime = a;
stopTime = b;
- if (t >= firstday + SECSINDAY)
- firstday = 0;
break;
}
}
}
if (!startTime)
startTime = firstday; // just to have something that's more than a week in the future
+ else if (t > startTime || t > firstday + SECSINDAY + 3600) // +3600 in case of DST change
+ firstday = 0;
return active && startTime <= t && t < stopTime; // must stop *before* stopTime to allow adjacent timers
}