summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2006-09-17 18:00:00 +0200
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2006-09-17 18:00:00 +0200
commitd495ed1a3e51fbb0fa0704cdb048a385be2b6a9b (patch)
tree813ad4f9eac743ee95510db944522c69da8e0d09 /timers.c
parent0b99b3aac10e38d624488978641d66fae3f41a28 (diff)
downloadvdr-patch-lnbsharing-d495ed1a3e51fbb0fa0704cdb048a385be2b6a9b.tar.gz
vdr-patch-lnbsharing-d495ed1a3e51fbb0fa0704cdb048a385be2b6a9b.tar.bz2
Version 1.4.2-3vdr-1.4.2-3
- Added --remove-destination to the 'cp' command for binaries in the Makefiles of the plugins (thanks to Rolf Ahrenberg). - The 'skincurses' plugin now adjusts the size of the OSD to the size of the console window. - Fixed deleting expired VPS timers (under certain conditions a timer could have been deleted before it even started recording). - Updated the Hungarian language texts (thanks to Istvan Koenigsberger and Guido Josten). - Fixed handling video directory updates in case the timestamp of the .update file is in the future (thanks to Petri Hintukainen).
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/timers.c b/timers.c
index 18dab0f..069b857 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.64 2006/09/08 15:06:09 kls Exp $
+ * $Id: timers.c 1.65 2006/09/15 14:15:53 kls Exp $
*/
#include "timers.h"
@@ -438,13 +438,7 @@ int cTimer::Matches(const cEvent *Event, int *Overlap) const
bool cTimer::Expired(void) const
{
- if (IsSingleEvent() && !Recording() && StopTime() + EXPIRELATENCY <= time(NULL)) {
- if (HasFlags(tfVps) && event && event->Vps())
- return event->RunningStatus() == SI::RunningStatusNotRunning;
- else
- return true;
- }
- return false;
+ return IsSingleEvent() && !Recording() && StopTime() + EXPIRELATENCY <= time(NULL) && (!HasFlags(tfVps) || !event);
}
time_t cTimer::StartTime(void) const