Feature #4620 ยป SAT-IP-Disable-pids-all.diff
src/satip/rtsp.c | ||
---|---|---|
857 | 857 |
if (x == NULL) |
858 | 858 |
break; |
859 | 859 |
if (strcmp(x, "all") == 0) { |
860 |
pids->all = 1; |
|
860 |
if (satip_server_conf.satip_replace_pids_all) { |
|
861 |
pids->all = 0; |
|
862 |
for (pid = 1; pid <= 20; pid++) { |
|
863 |
mpegts_pid_add(pids, pid, MPS_WEIGHT_RAW); |
|
864 |
} |
|
865 |
} else { |
|
866 |
pids->all = 1; |
|
867 |
} |
|
861 | 868 |
} else { |
862 | 869 |
pids->all = 0; |
863 | 870 |
pid = atoi(x); |
src/satip/server.c | ||
---|---|---|
678 | 678 |
.group = 1, |
679 | 679 |
}, |
680 | 680 |
{ |
681 |
.type = PT_BOOL, |
|
682 |
.id = "satip_replace_pids_all", |
|
683 |
.name = N_("Disable \"pids=all\""), |
|
684 |
.desc = N_("Replace the Full Transport Stream with a range " |
|
685 |
"0x00-0x16 pids only."), |
|
686 |
.off = offsetof(struct satip_server_conf, satip_replace_pids_all), |
|
687 |
.opts = PO_EXPERT, |
|
688 |
.group = 1, |
|
689 |
}, |
|
690 |
{ |
|
681 | 691 |
.type = PT_INT, |
682 | 692 |
.id = "satip_weight", |
683 | 693 |
.name = N_("Subscription weight"), |
src/satip/server.h | ||
---|---|---|
51 | 51 |
int satip_notcp_mode; |
52 | 52 |
int satip_anonymize; |
53 | 53 |
int satip_noupnp; |
54 |
int satip_replace_pids_all; |
|
54 | 55 |
int satip_iptv_sig_level; |
55 | 56 |
int satip_force_sig_level; |
56 | 57 |
int satip_dvbs; |