]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
revert partially 0e8a9335c391d08a7b2be9b1575f158c33c4345a - wrong idclass handling
authorJaroslav Kysela <perex@perex.cz>
Wed, 11 Nov 2015 18:49:12 +0000 (19:49 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 11 Nov 2015 18:49:12 +0000 (19:49 +0100)
src/input/mpegts/satip/satip_frontend.c
src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c

index 1199dc6adc76b0c152c3579da3aaea28b947d30a..acdb8a61490ce7f7bccbb6596b7c6e5ec59bd5de 100644 (file)
@@ -1705,7 +1705,13 @@ satip_frontend_create
   if (type == DVB_TYPE_S)
     idc = master ? &satip_frontend_dvbs_slave_class :
                    &satip_frontend_dvbs_class;
-  else if (!(idc = dvb_network_class_by_fe_type(type))) {
+  else if (type == DVB_TYPE_T)
+    idc = &satip_frontend_dvbt_class;
+  else if (type == DVB_TYPE_C)
+    idc = &satip_frontend_dvbc_class;
+  else if (type == DVB_TYPE_ATSC)
+    idc = &satip_frontend_atsc_class;
+  else {
     tvherror("satip", "unknown FE type %d", type);
     return NULL;
   }
index bd32e75c9cb567073a0cfa350b94b2a9c6add344..c5188dabdfc58295be8a0b5c86d6f6d6d04dd531 100644 (file)
@@ -622,8 +622,14 @@ tvhdhomerun_frontend_create(tvhdhomerun_device_t *hd, struct hdhomerun_discover_
     uuid = htsmsg_get_str(conf, "uuid");
 
   /* Class */
-  if (!(idc = dvb_network_class_by_fe_type(type)) || type == DVB_TYPE_S) {
-    tvherror("tvhdhomerun", "unknown FE type %d", type);
+  if (type == DVB_TYPE_T)
+    idc = &tvhdhomerun_frontend_dvbt_class;
+  else if (type == DVB_TYPE_C)
+    idc = &tvhdhomerun_frontend_dvbc_class;
+  else if (type == DVB_TYPE_ATSC) {
+    idc = &tvhdhomerun_frontend_atsc_class;
+  } else {
+    tvherror("stvhdhomerun", "unknown FE type %d", type);
     return NULL;
   }