libdvbv5: fix reading multisection tables
authorAndré Roth <neolynx@gmail.com>
Wed, 8 Jan 2014 22:12:46 +0000 (19:12 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 15 Jan 2014 12:56:31 +0000 (10:56 -0200)
commit6d0bae65f1e89bebb622a6ca92c8cb9fb8f1e568
treea0f1794d29d038dd411d70a48cd4d8dbdf26d585
parentf352115010846f3dee53af70b08c82c4d4afb804
libdvbv5: fix reading multisection tables

Unfortunately the section ids are not granted to be incremented by one.
This means the last section id is not necessarily equal to the total
number of sections. The only way to know if everything has been parsed, is
to stop when a repeating section id has been found.

The sections do not need to contain the same table id. In EIT for example,
the id designates the corresponding service.
Thus, allow the table id to differ.

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/dvb-scan.c