]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
eit: obvious fixes
authorJaroslav Kysela <perex@perex.cz>
Sun, 4 Feb 2018 09:41:44 +0000 (10:41 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 4 Feb 2018 09:41:44 +0000 (10:41 +0100)
src/epggrab/module/eit.c

index 89eb27b20da47b51f32f9b856092c49c2d2d4a2c..140532d51e79d836766ae4b4b0cf3f3cdfb91421 100644 (file)
@@ -1172,9 +1172,11 @@ static int _eit_tune
 static epggrab_ota_map_t *eit_find_epggrab_map(epggrab_ota_mux_t *om, int id)
 {
   epggrab_ota_map_t *map;
+  epggrab_module_ota_t *m;
 
   LIST_FOREACH(map, &om->om_modules, om_link) {
-    if (((eit_private_t *)(map->om_module)->opaque)->id == id)
+    m = map->om_module;
+    if (m->opaque && ((eit_private_t *)m->opaque)->id == id)
       return map;
   }
   return NULL;
@@ -1224,6 +1226,8 @@ void eit_nit_callback(mpegts_table_t *mt, uint16_t nbid, const char *name, uint3
       }
       return;
     }
+
+    break;
   }
 
   tvhtrace(m->subsys, "NIT - detected module '%s'", m->id);