From 8c5590df633774e24dc87b500be7fbaeed261254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Fri, 7 Dec 2007 07:39:42 +0000 Subject: [PATCH] set network & provider on all transports --- avgen.c | 2 ++ iptv_input.c | 14 ++++++++++++++ v4l.c | 3 +++ 3 files changed, 19 insertions(+) diff --git a/avgen.c b/avgen.c index 73b742b9..9400587d 100644 --- a/avgen.c +++ b/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); } diff --git a/iptv_input.c b/iptv_input.c index 683e775f..809b5424 100644 --- a/iptv_input.c +++ b/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++; diff --git a/v4l.c b/v4l.c index 00ceb804..1bb852ea 100644 --- a/v4l.c +++ b/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; }