summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-02-21 15:30:35 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-02-21 15:30:35 +0100
commit6fef98aa971f8ee51b21d95f9fe3f975a13858f1 (patch)
tree9a08f57ac8377d16a35c1a84b0609b49a58318fe /epg.c
parentc969c77d9c5faed74e429a60c9eaa00b4b84ec1f (diff)
downloadvdr-6fef98aa971f8ee51b21d95f9fe3f975a13858f1.tar.gz
vdr-6fef98aa971f8ee51b21d95f9fe3f975a13858f1.tar.bz2
Implemented an "EPG linger time"
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epg.c b/epg.c
index fc5cc830..1cd0d446 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.9 2004/02/21 14:33:11 kls Exp $
+ * $Id: epg.c 1.10 2004/02/21 15:15:47 kls Exp $
*/
#include "epg.h"
@@ -523,7 +523,7 @@ void cSchedule::Cleanup(time_t Time)
Event = events.Get(a);
if (!Event)
break;
- if (Event->StartTime() + Event->Duration() + 3600 < Time) { // adding one hour for safety
+ if (Event->StartTime() + Event->Duration() + Setup.EPGLinger * 60 + 3600 < Time) { // adding one hour for safety
events.Del(Event);
a--;
}