]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
give transports a unique name
authorAndreas Öman <andreas@lonelycoder.com>
Fri, 7 Dec 2007 08:47:38 +0000 (08:47 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Fri, 7 Dec 2007 08:47:38 +0000 (08:47 +0000)
avgen.c
iptv_input.c
v4l.c

diff --git a/avgen.c b/avgen.c
index 9400587d6b173b72fd73a88e59b421dfaf013891..f13e6ed85982682f00899b3bb0ad7f34ca87be8f 100644 (file)
--- a/avgen.c
+++ b/avgen.c
@@ -116,6 +116,8 @@ avgen_init(void)
   t->tht_provider = strdup("HTS Tvheadend");
   t->tht_network = strdup("Internal");
 
+  t->tht_uniquename = strdup("TEST1");
+
   transport_link(t, ch);
 }
 
index 809b5424b99d45cbeb8e28f73622e76ba08c794c..c082c2e65e3930ba3aae832ebfe19b2accbda823 100644 (file)
@@ -241,6 +241,10 @@ iptv_configure_transport(th_transport_t *t, const char *iptv_type,
   else
     t->tht_network = strdup(inet_ntoa(t->tht_iptv_group_addr));
 
+  snprintf(buf, sizeof(buf), "IPTV:%s:%d",
+          inet_ntoa(t->tht_iptv_group_addr), t->tht_iptv_port);
+  t->tht_uniquename = strdup(buf);
+
   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 1bb852ea46a5758a18358341480285023a50b562..730e9f8848561721c5d32aa57d6dd7c506c4b35b 100644 (file)
--- a/v4l.c
+++ b/v4l.c
@@ -98,6 +98,8 @@ v4l_configure_transport(th_transport_t *t, const char *muxname,
 
   t->tht_network = strdup("Analog TV");
   t->tht_provider = strdup("Analog TV");
+  snprintf(buf, sizeof(buf), "ANALOG:%u", t->tht_v4l_frequency);
+  t->tht_uniquename = strdup(buf);
 
   transport_link(t, channel_find(channel_name, 1, NULL));
   return 0;