set network & provider on all transports

This commit is contained in:
Andreas Öman 2007-12-07 07:39:42 +00:00
parent ef4b612cde
commit 8c5590df63
3 changed files with 19 additions and 0 deletions

View file

@ -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);
}

View file

@ -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
View file

@ -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;
}