libdvbv5: Fix the speedup scan condition
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 2 May 2014 13:52:29 +0000 (06:52 -0700)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 2 May 2014 13:52:29 +0000 (06:52 -0700)
commitadc0ad6b7943aee7382ade5587af7433d2b82218
tree91064eaa44f5b9b65ad0f740c0fc6afa44b8eeb5
parentae8d14f7df5cc9a96b89b31af43ff5115bd17fdf
libdvbv5: Fix the speedup scan condition

The DVB table read routine has 3 operational modes: it can seek for an
specific table section, it can expect sequential table sections, or it
can wait non-sequencial sections, stopping when a section is duplicated.

The second mode (sequencial table sections) finishes the reading after
receiving all table sections from 0 to the max table section, speeding
up its reception, while being more reliant to section errors.

However, the tests for the stop condition for this mode were wrong.

Fix it.

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