mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
dashdemux: only generate index segment uri if there is a template
Simple fix to avoid an assertion.
This commit is contained in:
parent
5920ee2777
commit
5c480dfc13
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue