]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts network: add missing isdb/dab class handling
authorJaroslav Kysela <perex@perex.cz>
Thu, 7 Jan 2016 15:38:44 +0000 (16:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 7 Jan 2016 15:42:19 +0000 (16:42 +0100)
src/input/mpegts/mpegts_mux_dvb.c
src/input/mpegts/mpegts_network_dvb.c

index f7d21dbd04becb2960fc9410ce323d446cee0944..44dbda90649b758178a9658c60a19e9d54ce2295 100644 (file)
@@ -972,6 +972,18 @@ dvb_mux_create0
   } else if (ln->ln_type == DVB_TYPE_ATSC_C) {
     idc = &dvb_mux_atsc_c_class;
     delsys = DVB_SYS_DVBC_ANNEX_B;
+  } else if (ln->ln_type == DVB_TYPE_ISDB_T) {
+    idc = &dvb_mux_isdb_t_class;
+    delsys = DVB_SYS_ISDBT;
+  } else if (ln->ln_type == DVB_TYPE_ISDB_C) {
+    idc = &dvb_mux_isdb_c_class;
+    delsys = DVB_SYS_ISDBC;
+  } else if (ln->ln_type == DVB_TYPE_ISDB_S) {
+    idc = &dvb_mux_isdb_s_class;
+    delsys = DVB_SYS_ISDBS;
+  } else if (ln->ln_type == DVB_TYPE_DAB) {
+    idc = &dvb_mux_dab_class;
+    delsys = DVB_SYS_DAB;
   } else {
     tvherror("dvb", "unknown FE type %d", ln->ln_type);
     return NULL;
index b2af98ff0ce18f2f499f2a22e39b7bd47a5f3c19..ceaa0641ecc0c431c09d7d6043219e30de81290b 100644 (file)
@@ -893,6 +893,14 @@ const idclass_t *dvb_network_class_by_fe_type(dvb_fe_type_t type)
     return &dvb_network_atsc_t_class;
   else if (type == DVB_TYPE_ATSC_C)
     return &dvb_network_atsc_c_class;
+  else if (type == DVB_TYPE_ISDB_T)
+    return &dvb_network_isdb_t_class;
+  else if (type == DVB_TYPE_ISDB_C)
+    return &dvb_network_isdb_c_class;
+  else if (type == DVB_TYPE_ISDB_S)
+    return &dvb_network_isdb_s_class;
+  else if (type == DVB_TYPE_DAB)
+    return &dvb_network_dab_class;
 
   return NULL;
 }
@@ -909,6 +917,14 @@ dvb_fe_type_t dvb_fe_type_by_network_class(const idclass_t *idc)
     return DVB_TYPE_ATSC_T;
   else if (idc == &dvb_network_atsc_c_class)
     return DVB_TYPE_ATSC_C;
+  else if (idc == &dvb_network_isdb_t_class)
+    return DVB_TYPE_ISDB_T;
+  else if (idc == &dvb_network_isdb_c_class)
+    return DVB_TYPE_ISDB_C;
+  else if (idc == &dvb_network_isdb_s_class)
+    return DVB_TYPE_ISDB_S;
+  else if (idc == &dvb_network_dab_class)
+    return DVB_TYPE_DAB;
 
   return DVB_TYPE_NONE;
 }