From dfe6863387b73d8a70ab043920fae783349e8263 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 3 Jun 2012 10:53:52 +0200 Subject: [PATCH] mpegtbase: Add more debug in PSI handling Allows us to identify which SI we don't handle --- gst/mpegtsdemux/mpegtsbase.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index 3a1247bb19..188276feb6 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -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; }