dashdemux: only generate index segment uri if there is a template

Simple fix to avoid an assertion.
This commit is contained in:
Thiago Santos 2013-07-03 10:16:29 -03:00
parent 5920ee2777
commit 5c480dfc13

View file

@ -3762,6 +3762,7 @@ gst_mpd_client_get_next_header_index (GstMpdClient * client, gchar ** uri,
&& stream_period->period->SegmentTemplate->index) { && stream_period->period->SegmentTemplate->index) {
initialization = stream_period->period->SegmentTemplate->index; initialization = stream_period->period->SegmentTemplate->index;
} }
if (initialization)
*uri = gst_mpdparser_build_URL_from_template (initialization, *uri = gst_mpdparser_build_URL_from_template (initialization,
stream->cur_representation->id, 0, stream->cur_representation->id, 0,
stream->cur_representation->bandwidth, 0); stream->cur_representation->bandwidth, 0);