From 31830d8fef53a6917ea7fc9432e3566886bab91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 5 Oct 2008 16:59:36 +0000 Subject: [PATCH] Instead of relying on frontend status to reject non-working transports, use the quality index. --- dvb/dvb_transport.c | 6 ------ transports.c | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/dvb/dvb_transport.c b/dvb/dvb_transport.c index b5e77206..97cd6b2f 100644 --- a/dvb/dvb_transport.c +++ b/dvb/dvb_transport.c @@ -74,12 +74,6 @@ dvb_transport_start(th_transport_t *t, unsigned int weight, int status, if(tdmi != NULL && tdmi != t->tht_dvb_mux_instance && !force_start) { - /* Nope .. */ - - if(tdmi->tdmi_fe_status > TDMI_FE_UNKNOWN && - tdmi->tdmi_fe_status < TDMI_FE_BURSTY_FEC) - return 1; /* Not good enough signal here, can't use it */ - w = transport_compute_weight(&tdmi->tdmi_adapter->tda_transports); if(w >= weight) return 1; /* We are outranked by weight, cant use it */ diff --git a/transports.c b/transports.c index b5dd4f41..c9c686c1 100644 --- a/transports.c +++ b/transports.c @@ -365,7 +365,7 @@ transport_find(channel_t *ch, unsigned int weight) vec = alloca(cnt * sizeof(th_transport_t *)); i = 0; LIST_FOREACH(t, &ch->ch_transports, tht_ch_link) - if(!t->tht_disabled) + if(!t->tht_disabled && t->tht_quality_index(t) > 10) vec[i++] = t; /* Sort transports, lower priority should come come earlier in the vector