Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
psip: small optimization
  • Loading branch information
perexg committed Oct 22, 2015
1 parent 076cb9c commit c08bf56
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/epggrab/module/psip.c
Expand Up @@ -319,16 +319,11 @@ _psip_mgt_callback
mpegts_table_add(mm, DVB_ATSC_EIT_BASE, DVB_ATSC_EIT_MASK, _psip_eit_callback,
map, "aeit", MT_QUICKREQ | MT_CRC | MT_RECORD, tablepid,
MPS_WEIGHT_EIT);
} else if (type >= 0x200 && type <= 0x27f) {
} else if (type == 0x04 || (type >= 0x200 && type <= 0x27f)) {
/* This is an ETT table */
mpegts_table_add(mm, DVB_ATSC_ETT_BASE, DVB_ATSC_ETT_MASK, _psip_ett_callback,
map, "ett", MT_QUICKREQ | MT_CRC | MT_RECORD, tablepid,
MPS_WEIGHT_ETT);
} else if (type == 0x04) {
/* This is channel ETT */
mpegts_table_add(mm, DVB_ATSC_ETT_BASE, DVB_ATSC_ETT_MASK, _psip_ett_callback,
map, "ett", MT_QUICKREQ | MT_CRC | MT_RECORD, tablepid,
MPS_WEIGHT_ETT);
} else {
/* Skip this table */
goto next;
Expand Down

0 comments on commit c08bf56

Please sign in to comment.