epggrab: ota - mux_start - register all muxes (second fix)

This commit is contained in:
Jaroslav Kysela 2014-07-09 17:34:12 +02:00
parent f53bb4e05a
commit 43922b0255

View file

@ -201,14 +201,17 @@ epggrab_mux_start ( mpegts_mux_t *mm, void *p )
return;
/* Register all modules */
ota = NULL;
LIST_FOREACH(m, &epggrab_modules, link) {
if (m->type == EPGGRAB_OTA && m->enabled)
epggrab_ota_register((epggrab_module_ota_t *)m, NULL, mm);
ota = epggrab_ota_register((epggrab_module_ota_t *)m, ota, mm);
}
/* Check if already active */
LIST_FOREACH(map, &ota->om_modules, om_link)
map->om_module->start(map, mm);
if (ota) {
/* Check if already active */
LIST_FOREACH(map, &ota->om_modules, om_link)
map->om_module->start(map, mm);
}
}
static void