From 43922b02556985aa09a7ce27d3868b524bac009d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 9 Jul 2014 17:34:12 +0200 Subject: [PATCH] epggrab: ota - mux_start - register all muxes (second fix) --- src/epggrab/otamux.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index 51582247..49a0dc0e 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -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