set network & provider on all transports
This commit is contained in:
parent
ef4b612cde
commit
8c5590df63
3 changed files with 19 additions and 0 deletions
2
avgen.c
2
avgen.c
|
@ -113,6 +113,8 @@ avgen_init(void)
|
|||
t->tht_audio = transport_add_stream(t, -1, HTSTV_MPEG2AUDIO);
|
||||
|
||||
t->tht_name = strdup(ch->ch_name);
|
||||
t->tht_provider = strdup("HTS Tvheadend");
|
||||
t->tht_network = strdup("Internal");
|
||||
|
||||
transport_link(t, ch);
|
||||
}
|
||||
|
|
14
iptv_input.c
14
iptv_input.c
|
@ -227,6 +227,20 @@ iptv_configure_transport(th_transport_t *t, const char *iptv_type,
|
|||
st->st_got_section = iptv_parse_pat;
|
||||
st->st_section_docrc = 1;
|
||||
|
||||
t->tht_prio = 50;
|
||||
|
||||
s = config_get_str_sub(head, "provider", NULL);
|
||||
if(s != NULL)
|
||||
t->tht_provider = strdup(s);
|
||||
else
|
||||
t->tht_provider = strdup("IPTV");
|
||||
|
||||
s = config_get_str_sub(head, "network", NULL);
|
||||
if(s != NULL)
|
||||
t->tht_network = strdup(s);
|
||||
else
|
||||
t->tht_network = strdup(inet_ntoa(t->tht_iptv_group_addr));
|
||||
|
||||
t->tht_channel = channel_find(channel_name, 1, NULL);
|
||||
LIST_INSERT_HEAD(&iptv_probing_transports, t, tht_adapter_link);
|
||||
startupcounter++;
|
||||
|
|
3
v4l.c
3
v4l.c
|
@ -96,6 +96,9 @@ v4l_configure_transport(th_transport_t *t, const char *muxname,
|
|||
(float)t->tht_v4l_frequency / 1000000.0f);
|
||||
t->tht_name = strdup(buf);
|
||||
|
||||
t->tht_network = strdup("Analog TV");
|
||||
t->tht_provider = strdup("Analog TV");
|
||||
|
||||
transport_link(t, channel_find(channel_name, 1, NULL));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue