]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP: Fix the weight callback to not block multiple tuners
authorJaroslav Kysela <perex@perex.cz>
Fri, 18 Apr 2014 20:55:15 +0000 (22:55 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 5 May 2014 20:00:37 +0000 (22:00 +0200)
src/input/mpegts/satip/satip_frontend.c

index 5f68b73b5d03ddebed696cfbd78098f62b5872df..19c53c8e0f2a2eb693fda2122f177f4a0eba90bd 100644 (file)
@@ -256,12 +256,7 @@ satip_frontend_is_free ( mpegts_input_t *mi )
 static int
 satip_frontend_get_weight ( mpegts_input_t *mi )
 {
-  int weight = 0;
-  satip_device_t *sd = ((satip_frontend_t*)mi)->sf_device;
-  satip_frontend_t *lfe;
-  TAILQ_FOREACH(lfe, &sd->sd_frontends, sf_link)
-    weight = MAX(weight, mpegts_input_get_weight((mpegts_input_t*)lfe));
-  return weight;
+  return mpegts_input_get_weight(mi);
 }
 
 static int