From 88d8dfd9c65ec6e86f44ea5bcd8424acf51a680a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 3 Jun 2015 20:03:37 +0200 Subject: [PATCH] mpdparser: Add the startNumber as offset to the segment index when using a template --- ext/dash/gstmpdparser.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 261147726d..a17febb349 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3712,13 +3712,17 @@ gst_mpd_client_get_next_fragment (GstMpdClient * client, mediaURL = gst_mpdparser_build_URL_from_template (stream-> 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); if (stream->cur_seg_template->index) { indexURL = gst_mpdparser_build_URL_from_template (stream-> 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); } } else {