1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

octoscan: Fixed NIT timeout

This commit is contained in:
mvoelkel 2016-02-01 18:48:56 +01:00
parent b6b99c380e
commit 2170eee2d3

View File

@ -1009,6 +1009,7 @@ static int nit_cb(struct sfilter *sf)
//fprintf(stderr, "NIT(%02x): len %u nid %u snr %02x lsnr %02x", buf[0], slen, nid, buf[6], buf[7]); //fprintf(stderr, "NIT(%02x): len %u nid %u snr %02x lsnr %02x", buf[0], slen, nid, buf[6], buf[7]);
//fprintf(stderr, " ndl %02x tsll %02x\n", ndl, tsll); //fprintf(stderr, " ndl %02x tsll %02x\n", ndl, tsll);
if (p->tsi->stp->tpi->use_nit) {
for (c = tsp + 2; c < slen; c += tdl) { for (c = tsp + 2; c < slen; c += tdl) {
//dump(buf + c + 6, tdl); //dump(buf + c + 6, tdl);
memset(&t, 0, sizeof(struct tp_info)); memset(&t, 0, sizeof(struct tp_info));
@ -1065,7 +1066,7 @@ static int nit_cb(struct sfilter *sf)
} }
} }
}
return 0; return 0;
} }
@ -1470,7 +1471,6 @@ static int proc_sec(struct pid_info *p)
break; break;
case 0x40: case 0x40:
case 0x41: case 0x41:
if( p->tsi->stp->tpi->use_nit )
res = nit_cb(sf); res = nit_cb(sf);
break; break;
case 0x42: case 0x42:
@ -1478,9 +1478,10 @@ static int proc_sec(struct pid_info *p)
res = sdt_cb(sf); res = sdt_cb(sf);
break; break;
default: default:
if (tid >= 0x4E && tid <= 0x6F) { if (tid >= 0x4E && tid <= 0x6F)
res = eit_cb(sf, refresh); res = eit_cb(sf, refresh);
} else
res = -1;
break; break;
} }
if (res == 0) { if (res == 0) {