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

src/dvbpsi.c: dvbpsi_PushPacket() print table_id on CRC32 error

Give more information in the error message for aiding further
analysis of the encountered error.
parent fb4ae42b
......@@ -404,9 +404,10 @@ bool dvbpsi_PushPacket(dvbpsi_t *handle, uint8_t* p_data)
else
{
if (!dvbpsi_ValidPSISection(p_section))
dvbpsi_error(handle, "misc PSI", "Bad CRC_32 !!!");
dvbpsi_error(handle, "misc PSI", "Bad CRC_32 table 0x%x !!!",
p_section->p_data[0]);
else
dvbpsi_error(handle, "misc PSI", "0x%x", p_section->p_data[0]);
dvbpsi_error(handle, "misc PSI", "table 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