summarylogtreecommitdiffstats
path: root/vdr-2.4.6-pute-epg-loading-fix.patch
blob: 1190281c4b10d006be930796ee20daa7e445ad1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: kls
Source: https://www.vdr-portal.de/forum/index.php?thread/134030-vdr-kennt-via-pute-gesendetes-epg-erst-nach-neustart/&postID=1333102#post1333102

--- epg.c       2019/05/20 09:55:22     5.0
+++ epg.c       2021/01/04 09:05:26
@@ -1311,8 +1311,13 @@
      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))
+     for (cChannel *Channel = Channels->First(); Channel; Channel = Channels->Next(Channel)) {
+         if (const cSchedule *Schedule = Channel->schedule) {
+            if (!Schedule->ChannelID().Valid()) // this is the DummySchedule
+               Channel->schedule = NULL;
+            }
          Schedules->GetSchedule(Channel);
+         }
      }
   return result;
 }