From 66a52d54b197dce6aae05895be7743a0563e23c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Thu, 10 Jan 2008 10:55:00 +0000 Subject: [PATCH] fix incorrect compare which caused mux switching not to work at all --- dvb_dvr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvb_dvr.c b/dvb_dvr.c index 6b5b4d1d..c8166b98 100644 --- a/dvb_dvr.c +++ b/dvb_dvr.c @@ -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) {