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
This commit is contained in:
Florin Apostol 2015-07-02 15:17:51 +01:00 committed by Thiago Santos
parent 8e82129875
commit 8551f74a05

View file

@ -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,