]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP client: remove useless All tuners option (network limit is enough)
authorJaroslav Kysela <perex@perex.cz>
Mon, 21 Mar 2016 19:34:03 +0000 (20:34 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 21 Mar 2016 19:34:16 +0000 (20:34 +0100)
src/input/mpegts/satip/satip.c
src/input/mpegts/satip/satip_frontend.c
src/input/mpegts/satip/satip_private.h

index 6a20a598fde6e37bab25a7997aea9644211726c8..f67ac92522a3c72fb84b4bf62ec6894f3cd456bd 100644 (file)
@@ -331,14 +331,6 @@ const idclass_t satip_device_class =
       .opts     = PO_EXPERT,
       .off      = offsetof(satip_device_t, sd_skip_ts),
     },
-    {
-      .type     = PT_BOOL,
-      .id       = "all_tuners",
-      .name     = N_("All tuners (limited networks)"),
-      .desc     = N_("Try to use all tuners for the limited networks mode."),
-      .opts     = PO_EXPERT,
-      .off      = offsetof(satip_device_t, sd_all_tuners),
-    },
     {
       .type     = PT_BOOL,
       .id       = "disableworkarounds",
index 13c61c2bd32d056f7d92d7dda0afa7563ae3f247..e478be871faea33aa0b0072240da9a011cb56979 100644 (file)
@@ -514,31 +514,18 @@ satip_frontend_is_enabled
 {
   satip_frontend_t *lfe = (satip_frontend_t*)mi;
   satip_frontend_t *lfe2;
-  int position, netlimit;
+  int position;
 
   lock_assert(&global_lock);
 
   if (!mpegts_input_is_enabled(mi, mm, flags, weight)) return 0;
   if (lfe->sf_device->sd_dbus_allow <= 0) return 0;
   if (lfe->sf_type != DVB_TYPE_S) return 1;
-  /* try to reuse any input for limited networks if allowed */
-  if (lfe->sf_device->sd_all_tuners) {
-    position = satip_satconf_get_position(lfe, mm, &netlimit, 0, 0, -1);
-    if (position <= 0) return 0;
-    if (netlimit <= 0) goto cont;
-    /* try to reuse any tuner input as slave */
-    TAILQ_FOREACH(lfe2, &lfe->sf_device->sd_frontends, sf_link) {
-      if (lfe2 == lfe) continue;
-      if (satip_frontend_match_satcfg(lfe2, mm, flags, weight))
-        return 1;
-    }
-  }
   /* check if the position is enabled */
   position = satip_satconf_get_position(lfe, mm, NULL, 1, flags, weight);
   if (position <= 0)
     return 0;
   /* check if any "blocking" tuner is running */
-cont:
   TAILQ_FOREACH(lfe2, &lfe->sf_device->sd_frontends, sf_link) {
     if (lfe2 == lfe) continue;
     if (lfe2->sf_type != DVB_TYPE_S) continue;
index 42e6e814b1544c192d64b659adf7b3da5ccc5455..5e23d01cd56e63d5c824ead5b78ab0504044ad26 100644 (file)
@@ -95,7 +95,6 @@ struct satip_device
   int                        sd_can_weight;
   int                        sd_dbus_allow;
   int                        sd_skip_ts;
-  int                        sd_all_tuners;
   int                        sd_disable_workarounds;
   pthread_mutex_t            sd_tune_mutex;
 };