octoscan: Fixed NIT timeout

This commit is contained in:
mvoelkel 2016-02-01 18:48:56 +01:00
parent b6b99c380e
commit 2170eee2d3
1 changed files with 58 additions and 57 deletions

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