Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add option for per-tuner IP-address binding
  • Loading branch information
WereCatf authored and perexg committed May 5, 2015
1 parent 885d68f commit 9b73ad4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/html/config_tvadapters.html
Expand Up @@ -202,6 +202,11 @@ <h3>The adapters and tuners are listed / edited in a tree</h3>
<dd>Force the delay between RTSP TEARDOWN and RTSP SETUP command (value
from 'Next tune delay in ms' is used). Some devices are not able to handle
quick continuous tuning.</dd>
<p>
<dt><b>Tuner bind IP address</b><dt>
<dd>Force all network connections to this tuner be made over the specificed
IP-address, similar to the setting for the SAT-IP - device itself. Setting
this overrides the device - specific setting.</dd>

</dl>
</p>
Expand Down
9 changes: 8 additions & 1 deletion src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -46,7 +46,7 @@ satip_frontend_find_by_number( satip_device_t *sd, int num )
static char *
satip_frontend_bindaddr( satip_frontend_t *lfe )
{
char *bindaddr = lfe->sf_device->sd_bindaddr;
char *bindaddr = lfe->sf_tuner_bindaddr;
if (bindaddr == NULL || bindaddr[0] == '\0')
bindaddr = lfe->sf_device->sd_bindaddr;
return bindaddr;
Expand Down Expand Up @@ -174,6 +174,13 @@ const idclass_t satip_frontend_class =
.opts = PO_ADVANCED,
.off = offsetof(satip_frontend_t, sf_teardown_delay),
},
{
.type = PT_STR,
.id = "tunerbindaddr",
.name = "Tuner bind IP address",
.opts = PO_ADVANCED,
.off = offsetof(satip_frontend_t, sf_tuner_bindaddr),
},
{}
}
};
Expand Down
1 change: 1 addition & 0 deletions src/input/mpegts/satip/satip_private.h
Expand Up @@ -121,6 +121,7 @@ struct satip_frontend
int sf_play2;
int sf_tdelay;
int sf_teardown_delay;
char *sf_tuner_bindaddr;

/*
* Reception
Expand Down

0 comments on commit 9b73ad4

Please sign in to comment.