Instead of relying on frontend status to reject non-working transports,

use the quality index.
This commit is contained in:
Andreas Öman 2008-10-05 16:59:36 +00:00
parent 5946b6ea85
commit 31830d8fef
2 changed files with 1 additions and 7 deletions

View file

@ -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 */

View file

@ -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