Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
api mpegts: fix 1W / 0.8W scanlist issue (blank list for predefined m…
…uxes)
  • Loading branch information
perexg committed Mar 21, 2016
1 parent b2ef5f1 commit 47a7808
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/api_mpegts.c
Expand Up @@ -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);
Expand Down

0 comments on commit 47a7808

Please sign in to comment.