From 140b6983a5e5f004bdd40ee68dc48c304043a733 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 18 Apr 2014 22:55:15 +0200 Subject: [PATCH] SAT>IP: Fix the weight callback to not block multiple tuners --- src/input/mpegts/satip/satip_frontend.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 5f68b73b..19c53c8e 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -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