From f8e9cd6adee1b9cca584ee1a80a38c3b8bcfebdb Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 8 Oct 2011 15:04:35 +0200 Subject: [PATCH] More debugging code --- src/input/r_mpeg_ts.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input/r_mpeg_ts.cpp b/src/input/r_mpeg_ts.cpp index 110262b85..b7eff2a71 100644 --- a/src/input/r_mpeg_ts.cpp +++ b/src/input/r_mpeg_ts.cpp @@ -720,6 +720,8 @@ mpeg_ts_reader_c::parse_pmt(unsigned char *pmt) { pmt_descriptor = (mpeg_ts_pmt_descriptor_t *)((unsigned char *)pmt_pid_info + sizeof(mpeg_ts_pmt_pid_info_t)); while (pmt_descriptor < (mpeg_ts_pmt_descriptor_t *)((unsigned char *)pmt_pid_info + sizeof(mpeg_ts_pmt_pid_info_t) + es_info_length)) { + mxdebug_if(m_debug_pat_pmt, boost::format("mpeg_ts:parse_pmt: PMT descriptor tag 0x%|1$02x| length %2%\n") % static_cast(pmt_descriptor->tag) % static_cast(pmt_descriptor->length)); + switch(pmt_descriptor->tag) { case 0x56: // Teletext descriptor if (pmt_pid_info->stream_type == ISO_13818_PES_PRIVATE) { // PES containig private data