[libdvbpsi-devel] tables/eit.c: fix wrong check
Jean-Paul Saman
git at videolan.org
Wed Aug 15 16:18:03 CEST 2012
libdvbpsi | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Wed Aug 15 16:16:31 2012 +0200| [9ee6abd6b0f81abf82147f1127bf0b44b67a8153] | committer: Jean-Paul Saman
tables/eit.c: fix wrong check
The test on line 348 was wrong. It should test for p->p_next to exist instead
of testing for it being NULL.
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=9ee6abd6b0f81abf82147f1127bf0b44b67a8153
---
src/tables/eit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tables/eit.c b/src/tables/eit.c
index f7bf3b3..85e2742 100644
--- a/src/tables/eit.c
+++ b/src/tables/eit.c
@@ -345,7 +345,7 @@ static bool dvbpsi_IsCompleteEIT(dvbpsi_eit_decoder_t* p_eit_decoder, dvbpsi_psi
* we have to search for the beginning of the next segment) */
if (p->i_number == p->p_payload_start[4])
{
- while (!p->p_next &&
+ while (p->p_next &&
(p->p_next->i_number < p_eit_decoder->i_last_section_number))
{
p = p->p_next;
More information about the libdvbpsi-devel
mailing list