]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts: correct logic for DVB_TYPE (tvhdhomerun)
authorJaroslav Kysela <perex@perex.cz>
Wed, 11 Nov 2015 13:56:56 +0000 (14:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 11 Nov 2015 13:56:56 +0000 (14:56 +0100)
src/input/mpegts/mpegts_network_dvb.c
src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c

index b7eecd7ea01b70259c12f7e621ba0fced1e21d7f..79bd97406c6ea5f779432f593d046e21702ab6d7 100644 (file)
@@ -605,6 +605,7 @@ dvb_network_create0
 
   ln = calloc(1, sizeof(dvb_network_t));
   ln->ln_type = dvb_fe_type_by_network_class(idc);
+  assert(ln->ln_type != DVB_TYPE_NONE);
 
   /* Create */
   if (!(ln = (dvb_network_t*)mpegts_network_create0((void*)ln,
index 1e8874abf2b6d09a047a0c1131880ef8561aa665..bd32e75c9cb567073a0cfa350b94b2a9c6add344 100644 (file)
@@ -622,7 +622,7 @@ 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))) {
+  if (!(idc = dvb_network_class_by_fe_type(type)) || type == DVB_TYPE_S) {
     tvherror("tvhdhomerun", "unknown FE type %d", type);
     return NULL;
   }