dvb: fix mistake in NIT processing.
This was stopping some DVB-C networks from being properly scanned.
(cherry picked from commit 84c1c05d73
)
This commit is contained in:
parent
5a0fa887c8
commit
da3ca5cdf5
1 changed files with 7 additions and 7 deletions
|
@ -881,13 +881,13 @@ dvb_nit_callback(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
|
|||
hexdump("nit", ptr, len);
|
||||
#endif
|
||||
|
||||
/* 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue