summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-06 13:20:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-06 13:20:07 +0200
commit0f8495f1d8deff9560676cd46a8284007d291c44 (patch)
tree48cff3e04be0562e26d60ea704607e0ea07b678a /menu.c
parent15007f76cf18885ca611a2633e29bed26790acf1 (diff)
downloadvdr-0f8495f1d8deff9560676cd46a8284007d291c44.tar.gz
vdr-0f8495f1d8deff9560676cd46a8284007d291c44.tar.bz2
Added a mechanism to defer timer handling in case of problems
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 2ba1de8e..39785146 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 2.28 2011/02/27 12:37:48 kls Exp $
+ * $Id: menu.c 2.29 2011/08/06 13:13:34 kls Exp $
*/
#include "menu.h"
@@ -38,6 +38,7 @@
#define NEWTIMERLIMIT 120 // seconds until the start time of a new timer created from the Schedule menu,
// within which it will go directly into the "Edit timer" menu to allow
// further parameter settings
+#define DEFERTIMER 60 // seconds by which a timer is deferred in case of problems
#define MAXRECORDCONTROLS (MAXDEVICES * MAXRECEIVERS)
#define MAXINSTANTRECTIME (24 * 60 - 1) // 23:59 hours
@@ -4134,6 +4135,8 @@ cRecordControl::cRecordControl(cDevice *Device, cTimer *Timer, bool Pause)
else
DELETENULL(recorder);
}
+ else
+ timer->SetDeferred(DEFERTIMER);
if (!Timer) {
Timers.Del(timer);
Timers.SetModified();