Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: channels - fix crash for EIT/PSIP
  • Loading branch information
perexg committed Oct 22, 2015
1 parent 1b0cf2a commit 076cb9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/epggrab/channel.c
Expand Up @@ -217,6 +217,8 @@ epggrab_channel_t *epggrab_channel_create
{
epggrab_channel_t *ec;

assert(owner->channels);

if (htsmsg_get_str(conf, "id") == NULL)
return NULL;

Expand Down Expand Up @@ -337,9 +339,10 @@ void epggrab_channel_add ( channel_t *ch )
epggrab_channel_t *egc;

LIST_FOREACH(mod, &epggrab_modules, link)
RB_FOREACH(egc, mod->channels, link)
if (epggrab_channel_match_and_link(egc, ch))
break;
if (mod->channels)
RB_FOREACH(egc, mod->channels, link)
if (epggrab_channel_match_and_link(egc, ch))
break;
}

void epggrab_channel_rem ( channel_t *ch )
Expand Down

0 comments on commit 076cb9c

Please sign in to comment.