diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-01 15:44:29 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-01 15:44:29 +0100 |
commit | 86197f02060c594f0ec46a64b614215dcb5d28b6 (patch) | |
tree | 025e7d9e9f39c08fcc7e08f1073eb67efb39e6ff /timers.c | |
parent | 76e7a59f69d6a00db977d66211bb0ae20efddfb1 (diff) | |
download | vdr-86197f02060c594f0ec46a64b614215dcb5d28b6.tar.gz vdr-86197f02060c594f0ec46a64b614215dcb5d28b6.tar.bz2 |
The cTimer constructor can now take an optional cChannel
Diffstat (limited to 'timers.c')
-rw-r--r-- | timers.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.c 1.37 2005/12/27 14:33:14 kls Exp $ + * $Id: timers.c 1.38 2006/01/01 15:41:46 kls Exp $ */ #include "timers.h" @@ -20,14 +20,14 @@ // -- cTimer ----------------------------------------------------------------- -cTimer::cTimer(bool Instant, bool Pause) +cTimer::cTimer(bool Instant, bool Pause, cChannel *Channel) { startTime = stopTime = 0; recording = pending = inVpsMargin = false; flags = tfNone; if (Instant) SetFlags(tfActive | tfInstant); - channel = Channels.GetByNumber(cDevice::CurrentChannel()); + channel = Channel ? Channel : Channels.GetByNumber(cDevice::CurrentChannel()); time_t t = time(NULL); struct tm tm_r; struct tm *now = localtime_r(&t, &tm_r); |