give transports a unique name

This commit is contained in:
Andreas Öman 2007-12-07 08:47:38 +00:00
parent f213b963cd
commit b936b4d62e
3 changed files with 8 additions and 0 deletions

View file

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

View 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++;

2
v4l.c
View file

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