]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
eit: always prefer master rather than slave for the config, issue #5247
authorJaroslav Kysela <perex@perex.cz>
Wed, 2 Jan 2019 14:51:28 +0000 (15:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 2 Jan 2019 14:51:28 +0000 (15:51 +0100)
src/epggrab/module/eit.c

index d28196fb12f83c8e57c1c1d250b6f8aee8def6ae..93d2dfe76814d2b6943d9d64798e8dedca6f7de6 100644 (file)
@@ -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)