summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2013-07-03 18:44:54 +0200
committerEdward Hervey <edward@collabora.com>2013-07-03 18:44:54 +0200
commit6a611e5d3d822730361ac68f52e0a94c0f7e1fdf (patch)
tree1402adba29777d6dab24a8b0060d3b06ee24ec1c /tests
parent61a8cbae41843c8ab83eca4bf1211eeae98aed1b (diff)
downloadgstreamer-plugins-bad-6a611e5d3d822730361ac68f52e0a94c0f7e1fdf.tar.gz
mpegts: Fix TOT section parsing
And use it in example
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/mpegts/ts-parser.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c
index f878a9037..db422b3d8 100644
--- a/tests/examples/mpegts/ts-parser.c
+++ b/tests/examples/mpegts/ts-parser.c
@@ -327,6 +327,17 @@ dump_tdt (GstMpegTsSection * section)
}
static void
+dump_tot (GstMpegTsSection * section)
+{
+ const GstMpegTsTOT *tot = gst_mpegts_section_get_tot (section);
+ gchar *str = gst_date_time_to_iso8601_string (tot->utc_time);
+
+ g_printf (" utc_time : %s\n", str);
+ dump_descriptors (tot->descriptors, 7);
+ g_free (str);
+}
+
+static void
dump_section (GstMpegTsSection * section)
{
switch (GST_MPEGTS_SECTION_TYPE (section)) {
@@ -339,6 +350,9 @@ dump_section (GstMpegTsSection * section)
case GST_MPEGTS_SECTION_TDT:
dump_tdt (section);
break;
+ case GST_MPEGTS_SECTION_TOT:
+ dump_tot (section);
+ break;
case GST_MPEGTS_SECTION_SDT:
dump_sdt (section);
break;