summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-01 15:04:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-01 15:04:14 +0200
commit5a5fc72814c0a687d38b64c387f9bda642f8c4aa (patch)
tree08f216114cc768b79d3e3447457e2066631638c9 /config.c
parente2701822e83dbdb893e60ab556dbb0cbc7b3af21 (diff)
downloadvdr-5a5fc72814c0a687d38b64c387f9bda642f8c4aa.tar.gz
vdr-5a5fc72814c0a687d38b64c387f9bda642f8c4aa.tar.bz2
Stopping finished timer recordings before starting new ones
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/config.c b/config.c
index 4ae79d26..102bad16 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.61 2001/09/01 10:02:21 kls Exp $
+ * $Id: config.c 1.62 2001/09/01 15:04:14 kls Exp $
*/
#include "config.h"
@@ -571,7 +571,7 @@ bool cTimer::Matches(time_t t)
}
}
}
- return active && startTime <= t && t <= stopTime;
+ return active && startTime <= t && t < stopTime; // must stop *before* stopTime to allow adjacent timers
}
time_t cTimer::StartTime(void)
@@ -762,9 +762,8 @@ cTimer *cTimers::GetTimer(cTimer *Timer)
return NULL;
}
-cTimer *cTimers::GetMatch(void)
+cTimer *cTimers::GetMatch(time_t t)
{
- time_t t = time(NULL); // all timers must be checked against the exact same time to correctly handle Priority!
cTimer *t0 = NULL;
cTimer *ti = First();
while (ti) {