mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mpegtbase: Add more debug in PSI handling
Allows us to identify which SI we don't handle
This commit is contained in:
parent
d47d1713d9
commit
dfe6863387
1 changed files with 6 additions and 1 deletions
|
@ -1073,12 +1073,15 @@ mpegts_base_handle_psi (MpegTSBase * base, MpegTSPacketizerSection * section)
|
|||
&& (section->table_id < 0x80 || section->table_id > 0x8f))) {
|
||||
if (G_UNLIKELY (mpegts_base_calc_crc32 (section->data,
|
||||
section->section_length) != 0)) {
|
||||
GST_WARNING_OBJECT (base, "bad crc in psi pid 0x%x (table_id:0x%x)",
|
||||
GST_WARNING_OBJECT (base, "bad crc in psi pid 0x%04x (table_id:0x%02x)",
|
||||
section->pid, section->table_id);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
GST_DEBUG ("Handling PSI (pid: 0x%04x , table_id: 0x%02x)",
|
||||
section->pid, section->table_id);
|
||||
|
||||
switch (section->table_id) {
|
||||
case 0x00:
|
||||
/* PAT */
|
||||
|
@ -1174,6 +1177,8 @@ mpegts_base_handle_psi (MpegTSBase * base, MpegTSPacketizerSection * section)
|
|||
res = FALSE;
|
||||
break;
|
||||
default:
|
||||
GST_WARNING ("Unhandled or unknown section type (table_id 0x%02x)",
|
||||
section->table_id);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue