libdvbv5: better implement the NIT parser
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Nov 2013 19:41:21 +0000 (17:41 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 27 Nov 2013 11:24:41 +0000 (09:24 -0200)
commit850dd952ca049b038ec3e3186e4f1c245ed2a5e5
treeaa4fdd981b9740b1515f8e93773fc9131c6f433e
parentc94da1a00b65c7e6132fd693ae12705a5fb44188
libdvbv5: better implement the NIT parser

The code that were implementing the NIT parser were becoming too
complex, and had some common duplicated code.

Re-implement it, creating a helper routine to parse any NIT data,
and re-using the same routine to allow updating both the current
transponder and the detected transponders on a cleaner and saner
way.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/include/descriptors/desc_cable_delivery.h
lib/include/descriptors/desc_t2_delivery.h
lib/include/descriptors/nit.h
lib/libdvbv5/descriptors/desc_cable_delivery.c
lib/libdvbv5/descriptors/desc_t2_delivery.c
lib/libdvbv5/descriptors/nit.c
lib/libdvbv5/dvb-file.c
lib/libdvbv5/dvb-scan.c