summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-19 14:45:31 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-19 14:45:31 +0200
commita706fb8643fd891af400c4330417b72f7da8c897 (patch)
treeaf011e96afc1cf3efff5a0b21bfac945d992e2e5 /eit.c
parent73870fc90706ced04a25f19ee72595eb3a9e4d2b (diff)
downloadvdr-a706fb8643fd891af400c4330417b72f7da8c897.tar.gz
vdr-a706fb8643fd891af400c4330417b72f7da8c897.tar.bz2
Getting the event info for the current recording
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eit.c b/eit.c
index 8e5087d8..d2927ccc 100644
--- a/eit.c
+++ b/eit.c
@@ -16,7 +16,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: eit.c 1.21 2001/08/17 13:19:10 kls Exp $
+ * $Id: eit.c 1.22 2001/08/19 14:44:32 kls Exp $
***************************************************************************/
#include "eit.h"
@@ -570,7 +570,7 @@ const cEventInfo * cSchedule::GetEvent(time_t tTime) const
cEventInfo *pe = Events.First();
while (pe != NULL)
{
- if (pe->GetTime() == tTime)
+ if (pe->GetTime() <= tTime && tTime <= pe->GetTime() + pe->GetDuration())
return pe;
pe = Events.Next(pe);
@@ -615,7 +615,7 @@ void cSchedule::Cleanup(time_t tTime)
pEvent = Events.Get(a);
if (pEvent == NULL)
break;
- if (pEvent->GetTime() + pEvent->GetDuration() < tTime)
+ if (pEvent->GetTime() + pEvent->GetDuration() + 3600 < tTime) // adding one hour for safety
{
Events.Del(pEvent);
a--;