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

src/dvbpsi.c: only print CRC32 error when CRC32 checksum is wrong

Check if it is really the CRC32 that is wrong or if it is another issue.
parent 6cda9e15
......@@ -403,7 +403,10 @@ bool dvbpsi_PushPacket(dvbpsi_t *handle, uint8_t* p_data)
}
else
{
dvbpsi_error(handle, "misc PSI", "Bad CRC_32 !!!");
if (!dvbpsi_ValidPSISection(p_section))
dvbpsi_error(handle, "misc PSI", "Bad CRC_32 !!!");
else
dvbpsi_error(handle, "misc PSI", "0x%x", p_section->p_data[0]);
/* PSI section isn't valid => trash it */
dvbpsi_DeletePSISections(p_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