From 040291ff5a820286e2dbaff25530970ba866c347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 14 Oct 2015 10:31:23 +0300 Subject: mpdparser: Set default last_byte_pos to -1 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index d5a655dd9..80dc0df35 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -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; -- cgit v1.2.1