summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-11 14:10:00 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-11 14:10:00 +0200
commitc6e759f436e2ee6496425a2293bb64d7f28103d0 (patch)
tree30037982e11e73d5545c99e7b7281a887b722499 /timers.c
parent11df7f81006b440aa7a126c66bdbf932326fb7fc (diff)
downloadvdr-c6e759f436e2ee6496425a2293bb64d7f28103d0.tar.gz
vdr-c6e759f436e2ee6496425a2293bb64d7f28103d0.tar.bz2
Implemented separate PausePriority and PauseLifetime parameters for the recordings created when pausing live video
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/timers.c b/timers.c
index 8c982e2d..15429427 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.4 2003/04/27 11:11:45 kls Exp $
+ * $Id: timers.c 1.5 2003/05/11 13:48:49 kls Exp $
*/
#include "timers.h"
@@ -20,7 +20,7 @@
char *cTimer::buffer = NULL;
-cTimer::cTimer(bool Instant)
+cTimer::cTimer(bool Instant, bool Pause)
{
startTime = stopTime = 0;
recording = pending = false;
@@ -35,8 +35,8 @@ cTimer::cTimer(bool Instant)
stop = (stop / 60) * 100 + (stop % 60);
if (stop >= 2400)
stop -= 2400;
- priority = Setup.DefaultPriority;
- lifetime = Setup.DefaultLifetime;
+ priority = Pause ? Setup.PausePriority : Setup.DefaultPriority;
+ lifetime = Pause ? Setup.PauseLifetime : Setup.DefaultLifetime;
*file = 0;
firstday = 0;
summary = NULL;