From 8551f74a056b7fee2382bb7eab05fe35230ca85f Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Thu, 2 Jul 2015 15:17:51 +0100 Subject: [PATCH] dashdemux: fixed segment start when specified by SegmentTimeline @t attribute in segment Timeline is relative to the period start. Corrected the code to take this into account when computing segment timestamp. https://bugzilla.gnome.org/show_bug.cgi?id=751841 --- ext/dash/gstmpdparser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 04c92c95ce..abaa12409e 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3229,6 +3229,7 @@ gst_mpd_client_setup_representation (GstMpdClient * client, start_time = S->t * GST_SECOND; if (timescale > 1) start_time /= timescale; + start_time += PeriodStart; } if (!gst_mpd_client_add_media_segment (stream, SegmentURL->data, i, @@ -3325,6 +3326,7 @@ gst_mpd_client_setup_representation (GstMpdClient * client, start_time = S->t * GST_SECOND; if (timescale > 1) start_time /= timescale; + start_time += PeriodStart; } if (!gst_mpd_client_add_media_segment (stream, NULL, i, S->r, start,