Commit 9ee6abd6 authored by Jean-Paul Saman's avatar 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.
parent 5c3b697f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment