summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-03-13 13:19:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-03-13 13:19:30 +0100
commitae5ee879d0b2fe661278be9337eeda88fd4c656f (patch)
treeb835a355eb8327b272be3257d40ca0fe389ecba1 /epg.c
parent3c0ea98ab3934f944d03919afacbcd33bff63be7 (diff)
downloadvdr-ae5ee879d0b2fe661278be9337eeda88fd4c656f.tar.gz
vdr-ae5ee879d0b2fe661278be9337eeda88fd4c656f.tar.bz2
The running status of a VPS event is now only taken seriously if that event has been seen within the last 30 seconds
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 df267f63..4020e035 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.25 2005/02/19 11:35:00 kls Exp $
+ * $Id: epg.c 1.26 2005/03/13 13:19:15 kls Exp $
*/
#include "epg.h"
@@ -663,7 +663,7 @@ const cEvent *cSchedule::GetPresentEvent(bool CheckRunningStatus) const
if (!CheckRunningStatus)
break;
}
- if (CheckRunningStatus && time(NULL) - p->Seen() < 30 && p->RunningStatus() >= SI::RunningStatusPausing)
+ if (CheckRunningStatus && p->SeenWithin(30) && p->RunningStatus() >= SI::RunningStatusPausing)
return p;
}
return pe;