If event can not be created, don't crash.
This commit is contained in:
parent
8971276cb0
commit
eb5e262b71
1 changed files with 2 additions and 1 deletions
3
xmltv.c
3
xmltv.c
|
@ -333,7 +333,8 @@ xmltv_parse_programme_tags(xmltv_channel_t *xc, htsmsg_t *tags,
|
|||
const char *desc = xmltv_get_cdata_by_tag(tags, "desc");
|
||||
|
||||
LIST_FOREACH(ch, &xc->xc_channels, ch_xc_link) {
|
||||
e = epg_event_create(ch, start, stop);
|
||||
if((e = epg_event_create(ch, start, stop)) == NULL)
|
||||
continue;
|
||||
|
||||
if(title != NULL) epg_event_set_title(e, title);
|
||||
if(desc != NULL) epg_event_set_desc(e, desc);
|
||||
|
|
Loading…
Add table
Reference in a new issue