mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
dashdemux: offset segment numbers by startNumber
For SegmentTemplate elements containing a startNumber attribute, the `number' member of GstMediaSegments should be offset by the value of startNumber; however, this is not currently the case. As a result, the first URI(s) requested by the download loop will be wrong. This commit ensures that segment numbers will be offset by startNumber when one is present in a SegmentTemplate element. https://bugzilla.gnome.org/show_bug.cgi?id=705661
This commit is contained in:
parent
19a45554bf
commit
7f21226956
1 changed files with 2 additions and 1 deletions
|
@ -3035,7 +3035,8 @@ gst_mpdparser_get_chunk_by_index (GstMpdClient * client, guint indexStream,
|
|||
|
||||
/* TODO check PeriodEnd for segment beyond end of period */
|
||||
|
||||
segment->number = indexChunk;
|
||||
segment->number = indexChunk
|
||||
+ stream->cur_seg_template->MultSegBaseType->startNumber;
|
||||
segment->start_time = duration * indexChunk;
|
||||
segment->duration = duration;
|
||||
segment->SegmentURL = NULL;
|
||||
|
|
Loading…
Reference in a new issue