From 5c480dfc1344d59a250da6be266339465ad2eb39 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 3 Jul 2013 10:16:29 -0300 Subject: [PATCH] dashdemux: only generate index segment uri if there is a template Simple fix to avoid an assertion. --- ext/dash/gstmpdparser.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 4491e1d..319325c 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3762,9 +3762,10 @@ gst_mpd_client_get_next_header_index (GstMpdClient * client, gchar ** uri, && stream_period->period->SegmentTemplate->index) { initialization = stream_period->period->SegmentTemplate->index; } - *uri = gst_mpdparser_build_URL_from_template (initialization, - stream->cur_representation->id, 0, - stream->cur_representation->bandwidth, 0); + if (initialization) + *uri = gst_mpdparser_build_URL_from_template (initialization, + stream->cur_representation->id, 0, + stream->cur_representation->bandwidth, 0); } GST_MPD_CLIENT_UNLOCK (client); -- 2.7.4