Disallow multi service streaming from a single mux if the adapter is only 12Mbit/s USB

This commit is contained in:
Andreas Öman 2010-01-09 22:19:40 +00:00
parent 1f1ecfffde
commit ba2eaabcd4

View file

@ -117,13 +117,15 @@ dvb_transport_start(th_transport_t *t, unsigned int weight, int force_start)
/* Check if adapter is idle, or already tuned */
if(tdmi != NULL && tdmi != t->tht_dvb_mux_instance && !force_start) {
if(tdmi != NULL &&
(tdmi != t->tht_dvb_mux_instance ||
tda->tda_hostconnection == HOSTCONNECTION_USB12)) {
w = transport_compute_weight(&tdmi->tdmi_adapter->tda_transports);
if(w >= weight)
w = transport_compute_weight(&tda->tda_transports);
if(w >= weight && !force_start)
/* We are outranked by weight, cant use it */
return TRANSPORT_NOSTART_NOT_FREE;
dvb_adapter_clean(tda);
}