Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
psip: look up EIT channel based on source_id
  • Loading branch information
laurimyllari authored and perexg committed Oct 22, 2015
1 parent 322f935 commit 54565e1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/epggrab/module/psip.c
Expand Up @@ -90,8 +90,15 @@ _psip_eit_callback
tsid = ptr[0] << 8 | ptr[1];
extraid = tsid;

svc = mpegts_service_find(mm, tsid, 0, 0, 0);
if (!svc) return -1;
/* Look up channel based on the source id */
LIST_FOREACH(svc, &mm->mm_services, s_dvb_mux_link) {
if (svc->s_atsc_source_id == tsid)
break;
}
if (!svc) {
tvhwarn("psip", "EIT with no associated channel found (tsid 0x%04x)", tsid);
return -1;
}

/* Begin */
r = dvb_table_begin(mt, ptr, len, tableid, extraid, 7,
Expand Down

0 comments on commit 54565e1

Please sign in to comment.