services: include info from SDT (for Other services) if they already exist.

Services can be added from a variety of other tables which probably indicates
that they are in fact valid TV/Radio services, but we just don't know the
type.

This might help people to map these services manually within TVH.
(cherry picked from commit 34e7acc087)
This commit is contained in:
Adam Sutton 2013-04-16 21:50:52 +01:00
parent c2b8a0f9af
commit 2285f141e1
2 changed files with 6 additions and 3 deletions

View file

@ -485,7 +485,10 @@ dvb_service_build_msg(service_t *t)
htsmsg_add_u32(m, "pmt", t->s_pmt_pid);
htsmsg_add_u32(m, "pcr", t->s_pcr_pid);
htsmsg_add_str(m, "type", service_servicetype_txt(t));
snprintf(buf, sizeof(buf), "%s (0x%04X)", service_servicetype_txt(t), t->s_servicetype);
htsmsg_add_str(m, "type", buf);
htsmsg_add_str(m, "typestr", service_servicetype_txt(t));
htsmsg_add_u32(m, "typenum", t->s_servicetype);
htsmsg_add_str(m, "svcname", t->s_svcname ?: "");
htsmsg_add_str(m, "provider", t->s_provider ?: "");

View file

@ -763,8 +763,8 @@ static struct strtab stypetab[] = {
{ "HDTV", ST_DN_HDTV },
{ "SDTV", ST_SK_SDTV },
{ "SDTV", ST_NE_SDTV },
{ "SDTV-AC", ST_AC_SDTV },
{ "HDTV-AC", ST_AC_HDTV },
{ "SDTV", ST_AC_SDTV },
{ "HDTV", ST_AC_HDTV },
};
const char *