summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-29 14:17:33 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-29 14:17:33 +0100
commit6078b31aab7c52dbfed98a7013401e7c28905a7e (patch)
tree6ee7299947297954e8a776aa2e9ce94e04267556 /epg.c
parentea9a7eebd1397b2fef02b660f33970944a4bb832 (diff)
downloadvdr-6078b31aab7c52dbfed98a7013401e7c28905a7e.tar.gz
vdr-6078b31aab7c52dbfed98a7013401e7c28905a7e.tar.bz2
Now initializing the channels' schedule pointers when reading the epg.data file, so that the first WhatsOn menu will come up faster
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index def17ec5..d69158e2 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.56 2006/01/29 14:04:04 kls Exp $
+ * $Id: epg.c 1.57 2006/01/29 14:17:33 kls Exp $
*/
#include "epg.h"
@@ -977,6 +977,11 @@ bool cSchedules::Read(FILE *f)
bool result = cSchedule::Read(f, s);
if (OwnFile)
fclose(f);
+ if (result) {
+ // Initialize the channels' schedule pointers, so that the first WhatsOn menu will come up faster:
+ for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel))
+ s->GetSchedule(Channel);
+ }
return result;
}
return false;