diff options
author | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-06-03 10:53:52 +0200 |
---|---|---|
committer | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-06-05 10:47:49 +0200 |
commit | dfe6863387b73d8a70ab043920fae783349e8263 (patch) | |
tree | d475c2fccced296b85f73333bd400ccc886208a5 /gst/mpegtsdemux/mpegtsbase.c | |
parent | d47d1713d9b74faab42073fa9476931141a2760d (diff) | |
download | gstreamer-plugins-bad-dfe6863387b73d8a70ab043920fae783349e8263.tar.gz |
mpegtbase: Add more debug in PSI handling
Allows us to identify which SI we don't handle
Diffstat (limited to 'gst/mpegtsdemux/mpegtsbase.c')
-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 3a1247bb1..188276feb 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; } |