mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +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,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);
|
||||||
|
|
Loading…
Reference in a new issue