Don't inject EPG from disabled DVB services. Ticket #180

This commit is contained in:
Andreas Öman 2010-03-25 21:28:19 +00:00
parent 5288a7a5f1
commit 3dcc1f2be2

View file

@ -540,11 +540,7 @@ dvb_eit_callback(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
return -1;
t = dvb_transport_find(tdmi, serviceid, 0, NULL);
if(t == NULL)
return 0;
ch = t->tht_ch;
if(ch == NULL)
if(t == NULL || !t->tht_enabled || (ch = t->tht_ch) == NULL)
return 0;
while(len >= 12) {