summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-07-29 09:40:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-07-29 09:40:41 +0200
commit173e0bea9050de76f3dc424a5e18ef632053c7a7 (patch)
treed2ba235c48ecec072500a9c2044d1d4a0b7a750b /epg.c
parent8f2f3e9ac28f3f3380166f94fa297d23463770d6 (diff)
downloadvdr-173e0bea9050de76f3dc424a5e18ef632053c7a7.tar.gz
vdr-173e0bea9050de76f3dc424a5e18ef632053c7a7.tar.bz2
Fixed assigning schedules to channels in case there is no initial EPG information
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index dbd5350b..0b9eb965 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.77 2006/07/22 10:13:34 kls Exp $
+ * $Id: epg.c 1.78 2006/07/29 09:38:55 kls Exp $
*/
#include "epg.h"
@@ -1035,6 +1035,9 @@ cSchedule *cSchedules::AddSchedule(tChannelID ChannelID)
if (!p) {
p = new cSchedule(ChannelID);
Add(p);
+ cChannel *channel = Channels.GetByChannelID(ChannelID);
+ if (channel)
+ channel->schedule = p;
}
return p;
}