diff --git a/dvb/si/eit_print.h b/dvb/si/eit_print.h index 6c4d53c..54e7d04 100644 --- a/dvb/si/eit_print.h +++ b/dvb/si/eit_print.h @@ -64,19 +64,25 @@ static inline void eit_print(uint8_t *p_eit, switch (i_print_type) { case PRINT_XML: pf_print(print_opaque, - "", + "", i_tid, psz_tid, eit_get_sid(p_eit), psi_get_version(p_eit), + psi_get_section(p_eit), + psi_get_lastsection(p_eit), !psi_get_current(p_eit) ? 0 : 1, + eit_get_segment_last_sec_number(p_eit), eit_get_tsid(p_eit), eit_get_onid(p_eit) ); break; default: pf_print(print_opaque, - "new EIT tableid=0x%02x type=%s service_id=%u version=%u%s section=%u/%u tsid=%u" + "new EIT tableid=0x%02x type=%s service_id=%u version=%u%s" + " section=%u/%u segment_last_section=%u tsid=%u" " onid=%u", i_tid, psz_tid, eit_get_sid(p_eit), @@ -84,6 +90,7 @@ static inline void eit_print(uint8_t *p_eit, !psi_get_current(p_eit) ? " (next)" : "", psi_get_section(p_eit), psi_get_lastsection(p_eit), + eit_get_segment_last_sec_number(p_eit), eit_get_tsid(p_eit), eit_get_onid(p_eit) ); diff --git a/examples/dvb_print_si.output.txt b/examples/dvb_print_si.output.txt index 0b9af68..e083885 100644 --- a/examples/dvb_print_si.output.txt +++ b/examples/dvb_print_si.output.txt @@ -141,9 +141,9 @@ new SDT actual tsid=10000 version=1 onid=40000 - desc 4b nvod_reference tsid=10200 onid=40200 sid=20200 - desc 5f private_data specifier=0xaabbccdd end SDT -new EIT tableid=0x4e type=actual_pf service_id=20000 version=0 section=0/0 tsid=10000 onid=40000 +new EIT tableid=0x4e type=actual_pf service_id=20000 version=0 section=0/0 segment_last_section=0 tsid=10000 onid=40000 end EIT -new EIT tableid=0x4e type=actual_pf service_id=20000 version=1 section=0/0 tsid=10000 onid=40000 +new EIT tableid=0x4e type=actual_pf service_id=20000 version=1 section=0/0 segment_last_section=0 tsid=10000 onid=40000 * EVENT id=30000 start_time=1234567890 start_time_dec="2009-02-13 23:31:30 UTC" duration=86399 duration_dec=23:59:59 running=2 free_CA=0 - desc 4d short_event lang=eng event_name="Major TV event" text="The event of the century!" * EVENT id=30100 start_time=1 start_time_dec="1970-01-01 00:00:01 UTC" duration=3600 duration_dec=01:00:00 running=1 free_CA=0 diff --git a/examples/dvb_print_si.output.xml b/examples/dvb_print_si.output.xml index 62da99a..4b39fc1 100644 --- a/examples/dvb_print_si.output.xml +++ b/examples/dvb_print_si.output.xml @@ -30,13 +30,13 @@ - + - + - + @@ -228,10 +228,10 @@ - + - + @@ -248,9 +248,9 @@ - + - +