dont crash if there are no more programs in queue
This commit is contained in:
parent
618ac78d3c
commit
0904a4fb35
1 changed files with 1 additions and 1 deletions
2
epg.c
2
epg.c
|
@ -429,7 +429,7 @@ epg_channel_maintain(void)
|
|||
continue;
|
||||
|
||||
e = TAILQ_NEXT(e, e_link);
|
||||
if(now >= e->e_start && now < e->e_start + e->e_duration) {
|
||||
if(e != NULL && now >= e->e_start && now < e->e_start + e->e_duration) {
|
||||
ch->ch_epg_cur_event = e;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue