From ebf2a0092673cb224a202fb3cfd36bfdf1950867 Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Mon, 7 Sep 2015 16:20:42 +0100 Subject: [PATCH] dashdemux: test: added unit test for presentation time offset https://bugzilla.gnome.org/show_bug.cgi?id=752409 --- tests/check/elements/dash_mpd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c index 7b67bbc767..23822ce6b5 100644 --- a/tests/check/elements/dash_mpd.c +++ b/tests/check/elements/dash_mpd.c @@ -4082,6 +4082,7 @@ GST_START_TEST (dash_mpdparser_segment_template) GstClockTime expectedDuration; GstClockTime expectedTimestamp; GstClockTime periodStartTime; + GstClockTime offset; const gchar *xml = "" "" " " " " " " @@ -4151,6 +4153,9 @@ GST_START_TEST (dash_mpdparser_segment_template) periodStartTime = gst_mpd_parser_get_period_start_time (mpdclient); assert_equals_uint64 (periodStartTime, 10 * GST_SECOND); + offset = gst_mpd_parser_get_stream_presentation_offset (mpdclient, 0); + assert_equals_uint64 (offset, 15 * GST_SECOND); + gst_media_fragment_info_clear (&fragment); gst_mpd_client_free (mpdclient);