diff options
author | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-06-03 10:53:52 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-06-26 12:42:14 +0200 |
commit | 9de618613c420c5aee804aa297af49e0674561f6 (patch) | |
tree | abacdae4df22049f755a08de0328d59fa5069f08 /gst | |
parent | f4bd865735d83d8f6ba32f00c4d1915bd41bd41a (diff) |
mpegtbase: Add more debug in PSI handling
Allows us to identify which SI we don't handle
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegtsdemux/mpegtsbase.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index bdb9c0885..2ec6c8fb7 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -1091,12 +1091,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 */ @@ -1192,6 +1195,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; } |