diff --git a/src/epggrab/module/eit.c b/src/epggrab/module/eit.c index 12faaf9d..13f6b63e 100644 --- a/src/epggrab/module/eit.c +++ b/src/epggrab/module/eit.c @@ -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); diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index e6ff17b4..5c815242 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -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