Not all EPG types have a name, so don't deref ecg_name.
This commit is contained in:
parent
f6f7055f24
commit
54dfd84002
1 changed files with 2 additions and 1 deletions
|
@ -949,7 +949,8 @@ extjs_epg(http_connection_t *hc, const char *remain, void *opaque)
|
|||
htsmsg_add_u32(m, "end", e->e_stop);
|
||||
htsmsg_add_u32(m, "duration", e->e_stop - e->e_start);
|
||||
|
||||
if(e->e_content_type != NULL)
|
||||
if(e->e_content_type != NULL &&
|
||||
e->e_content_type->ect_group->ecg_name != NULL)
|
||||
htsmsg_add_str(m, "contentgrp", e->e_content_type->ect_group->ecg_name);
|
||||
htsmsg_add_msg(array, NULL, m);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue