mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-12 19:14:16 +00:00
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:
parent
8e82129875
commit
8551f74a05
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue