From 54de5914605a62d8c03a2bbe6b113e7a827c7ae4 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Fri, 21 Sep 2012 18:58:37 +0100 Subject: [PATCH] Fix stupid error that made it impossible to subscribe to 2 services on the same adapter. --- src/dvb/dvb_adapter.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/dvb/dvb_adapter.c b/src/dvb/dvb_adapter.c index ad25b85d..6a7547ae 100644 --- a/src/dvb/dvb_adapter.c +++ b/src/dvb/dvb_adapter.c @@ -781,17 +781,14 @@ dvb_adapter_input_dvr(void *aux) } } - /* find mux */ - LIST_FOREACH(t, &tda->tda_transports, s_active_link) - if(t->s_dvb_mux_instance == tda->tda_mux_current) - break; - /* Process */ while (r >= 188) { /* sync */ if (tsb[i] == 0x47) { - if(t) ts_recv_packet1(t, tsb + i, NULL); + LIST_FOREACH(t, &tda->tda_transports, s_active_link) + if(t->s_dvb_mux_instance == tda->tda_mux_current) + ts_recv_packet1(t, tsb + i, NULL); i += 188; r -= 188;