Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
EIT: process all channels, fixes #2764, fixes #2743
  • Loading branch information
perexg committed Apr 22, 2015
1 parent d416038 commit 9270518
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/epggrab/module/eit.c
Expand Up @@ -395,9 +395,10 @@ static int _eit_desc_crid
* EIT Event
* ***********************************************************************/

static int _eit_process_event
static int _eit_process_event_one
( epggrab_module_t *mod, int tableid,
mpegts_service_t *svc, const uint8_t *ptr, int len,
mpegts_service_t *svc, channel_t *ch,
const uint8_t *ptr, int len,
int local, int *resched, int *save )
{
int save2 = 0;
Expand All @@ -409,7 +410,6 @@ static int _eit_process_event
epg_episode_t *ee;
epg_serieslink_t *es;
eit_event_t ev;
channel_t *ch = LIST_FIRST(&svc->s_channels)->csm_chn;

if ( len < 12 ) return -1;

Expand Down Expand Up @@ -552,6 +552,23 @@ static int _eit_process_event
return ret;
}

static int _eit_process_event
( epggrab_module_t *mod, int tableid,
mpegts_service_t *svc, const uint8_t *ptr, int len,
int local, int *resched, int *save )
{
channel_service_mapping_t *csm;
int ret = 0;

if ( len < 12 ) return -1;

LIST_FOREACH(csm, &svc->s_channels, csm_svc_link)
ret = _eit_process_event_one(mod, tableid, svc, csm->csm_chn,
ptr, len, local, resched, save);
return ret;
}


static int
_eit_callback
(mpegts_table_t *mt, const uint8_t *ptr, int len, int tableid)
Expand Down

0 comments on commit 9270518

Please sign in to comment.