]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts network scan: do not disable inputs for user scan + init scan combos, fixes...
authorJaroslav Kysela <perex@perex.cz>
Thu, 25 May 2017 12:37:10 +0000 (14:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 25 May 2017 12:40:07 +0000 (14:40 +0200)
src/input/mpegts/mpegts_input.c

index b8178808eba99d33880df1d30127d551c19acc9f..0501f4c7d51da53b4c1e85417e30744c65b8698f 100644 (file)
@@ -375,10 +375,12 @@ mpegts_input_is_enabled
 {
   if ((flags & SUBSCRIPTION_EPG) != 0 && !mi->mi_ota_epg)
     return MI_IS_ENABLED_NEVER;
-  if ((flags & SUBSCRIPTION_INITSCAN) != 0 && !mi->mi_initscan)
-    return MI_IS_ENABLED_NEVER;
-  if ((flags & SUBSCRIPTION_IDLESCAN) != 0 && !mi->mi_idlescan)
-    return MI_IS_ENABLED_NEVER;
+  if ((flags & SUBSCRIPTION_USERSCAN) == 0) {
+    if ((flags & SUBSCRIPTION_INITSCAN) != 0 && !mi->mi_initscan)
+      return MI_IS_ENABLED_NEVER;
+    if ((flags & SUBSCRIPTION_IDLESCAN) != 0 && !mi->mi_idlescan)
+      return MI_IS_ENABLED_NEVER;
+  }
   return mi->mi_enabled ? MI_IS_ENABLED_OK : MI_IS_ENABLED_NEVER;
 }