From: Jaroslav Kysela Date: Thu, 22 Oct 2015 16:20:03 +0000 (+0200) Subject: psip: small optimization X-Git-Tag: v4.2.1~1807 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c08bf56380943a93a24045a6e0249c04890b34fa;p=thirdparty%2Ftvheadend.git psip: small optimization --- diff --git a/src/epggrab/module/psip.c b/src/epggrab/module/psip.c index a027909ba..ce62c7b06 100644 --- a/src/epggrab/module/psip.c +++ b/src/epggrab/module/psip.c @@ -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;