diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-26 15:10:02 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-26 15:10:02 +0100 |
commit | 58985f6dc1b0e6d6b1ac3cc99075400b163be523 (patch) | |
tree | 58e24e59d60a2e4813780e34aeba5e5b801f07ad /epg.c | |
parent | 46ad11bcf8057fbe428e9062bf59b8b2a2e10a51 (diff) | |
download | vdr-58985f6dc1b0e6d6b1ac3cc99075400b163be523.tar.gz vdr-58985f6dc1b0e6d6b1ac3cc99075400b163be523.tar.bz2 |
Fixed cSchedule::GetFollowingEvent() in case there is currently no present event running1.3.44
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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.63 2006/02/26 13:54:44 kls Exp $ + * $Id: epg.c 1.64 2006/02/26 15:07:17 kls Exp $ */ #include "epg.h" @@ -691,6 +691,13 @@ const cEvent *cSchedule::GetFollowingEvent(void) const const cEvent *p = GetPresentEvent(); if (p) p = events.Next(p); + else { + time_t now = time(NULL); + for (p = events.First(); p; p = events.Next(p)) { + if (p->StartTime() >= now) + break; + } + } return p; } |