From: Jaroslav Kysela Date: Wed, 2 Jan 2019 14:51:28 +0000 (+0100) Subject: eit: always prefer master rather than slave for the config, issue #5247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=640703e83d293bf5e5fb1c8fcdcfd80ffd396937;p=thirdparty%2Ftvheadend.git eit: always prefer master rather than slave for the config, issue #5247 --- diff --git a/src/epggrab/module/eit.c b/src/epggrab/module/eit.c index d28196fb1..93d2dfe76 100644 --- a/src/epggrab/module/eit.c +++ b/src/epggrab/module/eit.c @@ -1147,6 +1147,10 @@ static void _eit_install_handlers LIST_FOREACH(plist, &om->om_eit_plist, link) { priv2 = (eit_private_t *)plist->priv; if (!priv || priv->module->priority < priv2->module->priority) { + /* ignore priority for the slave, always prefer master */ + if (priv && strcmp(priv->slave, priv2->module->id) == 0) + continue; + /* find the ota map */ m = priv2->module; LIST_FOREACH(map, &om->om_modules, om_link) { if (map->om_module == m)