summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-10-13 14:19:26 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-10-13 14:19:26 +0200
commit8c633a5f65da85769600f8867296f33cc30b9946 (patch)
tree2563791d7f807e34ddd4fd144fe814bb625ac701 /vdr.c
parent7f7fa7fd902c819f616312489dbe882f3bc1edfa (diff)
downloadvdr-8c633a5f65da85769600f8867296f33cc30b9946.tar.gz
vdr-8c633a5f65da85769600f8867296f33cc30b9946.tar.bz2
Fixed handling VPS timers in case the running status of an event goes to '1' (not running) and later goes to '4' (running)
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 4ce7b269..5494cf7d 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 2.41 2012/10/03 09:58:46 kls Exp $
+ * $Id: vdr.c 2.42 2012/10/13 12:48:56 kls Exp $
*/
#include <getopt.h>
@@ -892,7 +892,7 @@ int main(int argc, char *argv[])
Timer->SetInVpsMargin(InVpsMargin);
}
else if (Timer->Event()) {
- InVpsMargin = Timer->Event()->StartTime() <= Now && Timer->Event()->RunningStatus() == SI::RunningStatusUndefined;
+ InVpsMargin = Timer->Event()->StartTime() <= Now && Now < Timer->Event()->EndTime();
NeedsTransponder = Timer->Event()->StartTime() - Now < VPSLOOKAHEADTIME * 3600 && !Timer->Event()->SeenWithin(VPSUPTODATETIME);
}
else {