From c5910f79873651559f0e30a77419ddc30e044c0d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 21 Jun 2009 14:08:51 +0200 Subject: Fixed deleting expired timers if they have the VPS flag set, but the event they are assigned to doesn't have a VPS tag --- HISTORY | 2 ++ timers.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 5b501e61..7d3c59c9 100644 --- a/HISTORY +++ b/HISTORY @@ -6144,3 +6144,5 @@ Video Disk Recorder Revision History buffer has been accepted by the device (reported by Udo Richter). - Changed the EIT filter setup to save a few handles on devices that do hardware filtering. +- Fixed deleting expired timers if they have the VPS flag set, but the event they + are assigned to doesn't have a VPS tag. diff --git a/timers.c b/timers.c index b963dee0..191c0312 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 2.1 2008/04/13 12:41:41 kls Exp $ + * $Id: timers.c 2.2 2009/06/21 14:06:33 kls Exp $ */ #include "timers.h" @@ -463,7 +463,7 @@ int cTimer::Matches(const cEvent *Event, int *Overlap) const bool cTimer::Expired(void) const { - return IsSingleEvent() && !Recording() && StopTime() + EXPIRELATENCY <= time(NULL) && (!HasFlags(tfVps) || !event); + return IsSingleEvent() && !Recording() && StopTime() + EXPIRELATENCY <= time(NULL) && (!HasFlags(tfVps) || !event || !event->Vps()); } time_t cTimer::StartTime(void) const -- cgit v1.2.3