mpdparser: Set default last_byte_pos to -1
authorSebastian Dröge <sebastian@centricular.com>
Wed, 14 Oct 2015 07:31:23 +0000 (10:31 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Oct 2015 07:17:48 +0000 (10:17 +0300)
The value is optional in the range, and if it is absent it means we should
download until the end of stream. Not until position 0.

https://bugzilla.gnome.org/show_bug.cgi?id=748316

ext/dash/gstmpdparser.c

index d5a655dd9f5bd99e5efe8ffb0790deb991bf5b12..80dc0df35753a706708b33527a716310e3458ef6 100644 (file)
@@ -543,7 +543,7 @@ gst_mpdparser_get_xml_prop_range (xmlNode * a_node, const gchar * property_name,
     GstRange ** property_value)
 {
   xmlChar *prop_string;
-  guint64 first_byte_pos = 0, last_byte_pos = 0;
+  guint64 first_byte_pos = 0, last_byte_pos = -1;
   guint len, pos;
   gchar *str;
   gboolean exists = FALSE;