From: Andreas Ă–man Date: Mon, 27 Aug 2007 19:06:33 +0000 (+0000) Subject: create channels when reading pvrschedule X-Git-Tag: 2.12~1460 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64b90ea2e890cd6afa5d88f5fd8159807d48dcf7;p=thirdparty%2Ftvheadend.git create channels when reading pvrschedule --- diff --git a/pvr.c b/pvr.c index 75c97ee08..7f4952a14 100644 --- a/pvr.c +++ b/pvr.c @@ -390,7 +390,6 @@ pvr_database_load(void) { char line[4000]; pvr_rec_t *pvrr = NULL; - th_channel_t *ch; FILE *fp; int l; char *key, *val; @@ -418,12 +417,8 @@ pvr_database_load(void) continue; *val++ = 0; - if(!strcmp(key, "channel")) { - TAILQ_FOREACH(ch, &channels, ch_global_link) - if(!strcmp(ch->ch_name, val)) - break; - pvrr->pvrr_channel = ch; - } + if(!strcmp(key, "channel")) + pvrr->pvrr_channel = channel_find(val, 1); else if(!strcmp(key, "start")) pvrr->pvrr_start = atoi(val);