dvb: fix mistake in NIT processing.

This was stopping some DVB-C networks from being properly scanned.
This commit is contained in:
Adam Sutton 2013-05-10 15:10:54 +01:00
parent a2ccbb2de6
commit 84c1c05d73

View file

@ -894,13 +894,13 @@ dvb_nit_callback(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
tvhtrace("nit", "tableid 0x%02x", tableid);
tvhlog_hexdump("nit", ptr, len);
/* Ignore other network */
if(tableid != 0x40) return -1;
/* Check NID */
if(tdmi->tdmi_adapter->tda_nitoid &&
tdmi->tdmi_adapter->tda_nitoid != network_id)
return -1;
/* Specific NID requested */
if(tdmi->tdmi_adapter->tda_nitoid) {
if (tdmi->tdmi_adapter->tda_nitoid != network_id)
return -1;
} else if (tableid != 0x40) {
return -1;
}
/* Ignore non-current */
if((ptr[2] & 1) == 0)