mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
mpdparser: Add the startNumber as offset to the segment index when using a template
This commit is contained in:
parent
f530aac115
commit
88d8dfd9c6
1 changed files with 6 additions and 2 deletions
|
@ -3712,13 +3712,17 @@ gst_mpd_client_get_next_fragment (GstMpdClient * client,
|
||||||
mediaURL =
|
mediaURL =
|
||||||
gst_mpdparser_build_URL_from_template (stream->
|
gst_mpdparser_build_URL_from_template (stream->
|
||||||
cur_seg_template->media, stream->cur_representation->id,
|
cur_seg_template->media, stream->cur_representation->id,
|
||||||
stream->segment_index, stream->cur_representation->bandwidth,
|
stream->segment_index +
|
||||||
|
stream->cur_seg_template->MultSegBaseType->startNumber,
|
||||||
|
stream->cur_representation->bandwidth,
|
||||||
stream->segment_index * fragment->duration);
|
stream->segment_index * fragment->duration);
|
||||||
if (stream->cur_seg_template->index) {
|
if (stream->cur_seg_template->index) {
|
||||||
indexURL =
|
indexURL =
|
||||||
gst_mpdparser_build_URL_from_template (stream->
|
gst_mpdparser_build_URL_from_template (stream->
|
||||||
cur_seg_template->index, stream->cur_representation->id,
|
cur_seg_template->index, stream->cur_representation->id,
|
||||||
stream->segment_index, stream->cur_representation->bandwidth,
|
stream->segment_index +
|
||||||
|
stream->cur_seg_template->MultSegBaseType->startNumber,
|
||||||
|
stream->cur_representation->bandwidth,
|
||||||
stream->segment_index * fragment->duration);
|
stream->segment_index * fragment->duration);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue