epggrab: EIT - fix the service remove condition

This commit is contained in:
Jaroslav Kysela 2014-09-10 15:25:12 +02:00
parent 20171038ab
commit a76ee1921b
2 changed files with 2 additions and 1 deletions

View file

@ -713,7 +713,7 @@ static int _eit_tune
// consider changeing it?
for (osl = RB_FIRST(&map->om_svcs); osl != NULL; osl = nxt) {
nxt = RB_NEXT(osl, link);
/* rule: if 5 mux scans fails for this service, remove it */
/* rule: if 5 mux scans fail for this service, remove it */
if (osl->last_tune_count + 5 <= map->om_tune_count ||
!(s = mpegts_service_find_by_uuid(osl->uuid))) {
epggrab_ota_service_del(map, om, osl, 1);

View file

@ -615,6 +615,7 @@ epggrab_ota_service_add ( epggrab_ota_map_t *map, epggrab_ota_mux_t *ota,
ota->om_save = 1;
epggrab_ota_service_trace(ota, svcl, "add new");
}
svcl->last_tune_count = map->om_tune_count;
}
void