tables/eit.c: fix wrong check

[email protected] (Jean-Paul Saman)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | 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;

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.