mpdparser: Use RepresentationIndex instead of Initialization to get the URL of the...
authorJohn Chang <r97922153@gmail.com>
Thu, 21 Jan 2016 14:00:44 +0000 (22:00 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 22 Jan 2016 15:45:26 +0000 (17:45 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=760936

ext/dash/gstmpdparser.c

index ffb2d240e4561f001146753ffdba0b27dcd447b0..8ecfbb66386622ab1c690159c342bc8fa2420281 100644 (file)
@@ -5284,7 +5284,7 @@ gst_mpd_client_get_next_header_index (GstMpdClient * client, gchar ** uri,
   if (stream->cur_segment_base && stream->cur_segment_base->indexRange) {
     *uri =
         g_strdup (gst_mpdparser_get_initializationURL (stream,
-            stream->cur_segment_base->Initialization));
+            stream->cur_segment_base->RepresentationIndex));
     *range_start = stream->cur_segment_base->indexRange->first_byte_pos;
     *range_end = stream->cur_segment_base->indexRange->last_byte_pos;
   } else if (stream->cur_seg_template && stream->cur_seg_template->index) {