From a76ee1921be9028e4b9c10e9dfe92613497cac45 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 10 Sep 2014 15:25:12 +0200 Subject: [PATCH] epggrab: EIT - fix the service remove condition --- src/epggrab/module/eit.c | 2 +- src/epggrab/otamux.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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