From 015566daec774b19fa8eadce2361aa6814b8e7a0 Mon Sep 17 00:00:00 2001 From: Alex Ashley Date: Tue, 11 Dec 2018 14:43:21 +0000 Subject: [PATCH] tests/dash_mpd: take account of Period start in expected timestamps The start of each segment is relative to the Period start, minus the presentation time offset. As specified in section 5.3.9.6 of the MPEG DASH specification: The value of the @t attribute minus the value of the @presentationTimeOffset specifies the MPD start time of the first Segment in the series. Several tests use a Period@start value of 10 seconds, which either needs to be taken into account when calculating expected timestamps or have that attribute removed. This commit uses a mix of updating the timestamps and removing the start attribute, so that both the case of its presence and absence is tested. --- tests/check/elements/dash_mpd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c index d9455fa..d9d1432 100644 --- a/tests/check/elements/dash_mpd.c +++ b/tests/check/elements/dash_mpd.c @@ -4503,7 +4503,7 @@ GST_START_TEST (dash_mpdparser_inherited_segmentURL) " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"" " availabilityStartTime=\"2015-03-24T0:0:0\"" " mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">" - " " + " " " " " " " " - "" + "" " " " " "