fix incorrect compare which caused mux switching not to work at all

This commit is contained in:
Andreas Öman 2008-01-10 10:55:00 +00:00
parent 38a16f8088
commit 66a52d54b1

View file

@ -149,7 +149,7 @@ dvb_start_feed(th_transport_t *t, unsigned int weight, int status)
/* Check if adapter is idle, or already tuned */
if(tdmi != NULL && tdmi == t->tht_dvb_mux_instance) {
if(tdmi != NULL && tdmi != t->tht_dvb_mux_instance) {
/* Nope .. */
@ -163,9 +163,9 @@ dvb_start_feed(th_transport_t *t, unsigned int weight, int status)
if(w >= weight)
return 1; /* We are outranked by weight, cant use it */
tdmi = t->tht_dvb_mux_instance;
dvb_adapter_clean(tda);
}
tdmi = t->tht_dvb_mux_instance;
LIST_FOREACH(st, &t->tht_streams, st_link) {