diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-06 13:20:07 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-06 13:20:07 +0200 |
commit | 0f8495f1d8deff9560676cd46a8284007d291c44 (patch) | |
tree | 48cff3e04be0562e26d60ea704607e0ea07b678a /menu.c | |
parent | 15007f76cf18885ca611a2633e29bed26790acf1 (diff) | |
download | vdr-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(); |