]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
api mpegts: fix 1W / 0.8W scanlist issue (blank list for predefined muxes)
authorJaroslav Kysela <perex@perex.cz>
Mon, 21 Mar 2016 14:27:18 +0000 (15:27 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 21 Mar 2016 14:27:18 +0000 (15:27 +0100)
src/api/api_mpegts.c

index eee1f13d0001e76f698c425f628cbe1d54e58e5b..348e3e43335679a0ba8d53ff3354a35fc726a45d 100644 (file)
@@ -388,7 +388,9 @@ api_dvb_scanfile_list
   l = htsmsg_create_list();
   LIST_FOREACH(r, &list->srl_regions, sfr_link) {
     LIST_FOREACH(n, &r->sfr_networks, sfn_link) {
-      if (satpos != INT_MAX && n->sfn_satpos != satpos) continue;
+      if (satpos != INT_MAX &&
+          abs(n->sfn_satpos - satpos) > 2 &&
+          abs(satpos - n->sfn_satpos) > 2) continue;
       e = htsmsg_create_map();
       sprintf(buf, "%s/%s/%s", type, r->sfr_id, n->sfn_id);
       htsmsg_add_str(e, "key", buf);