Don't fail to tune if request weight == 0 and we are just idlescanning

Ticket #175
This commit is contained in:
Andreas Öman 2010-03-23 20:37:29 +00:00
parent 5e20573581
commit 8424ade4d5

View file

@ -125,7 +125,7 @@ dvb_transport_start(th_transport_t *t, unsigned int weight, int force_start)
tda->tda_hostconnection == HOSTCONNECTION_USB12)) {
w = transport_compute_weight(&tda->tda_transports);
if(w >= weight && !force_start)
if(w && w >= weight && !force_start)
/* We are outranked by weight, cant use it */
return SM_CODE_NOT_FREE;