Commit d565a849 authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/dvbpsi.c: ignore initial discontinuity

Do not print discontinuity message on the initial TS packet for this PID.
Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent 8513ed7b
......@@ -174,13 +174,18 @@ void dvbpsi_PushPacket(dvbpsi_handle h_dvbpsi, uint8_t* p_data)
return;
}
if(i_expected_counter != h_dvbpsi->i_continuity_counter)
if(!h_dvbpsi->b_discontinuity
&& (i_expected_counter != h_dvbpsi->i_continuity_counter))
{
DVBPSI_ERROR_ARG("PSI decoder",
"TS discontinuity (received %d, expected %d) for PID %d",
h_dvbpsi->i_continuity_counter, i_expected_counter,
((uint16_t)(p_data[1] & 0x1f) << 8) | p_data[2]);
h_dvbpsi->b_discontinuity = 1;
}
if(h_dvbpsi->b_discontinuity)
{
if(h_dvbpsi->p_current_section)
{
dvbpsi_DeletePSISections(h_dvbpsi->p_current_section);
......
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