summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-08-16 12:52:09 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-08-16 12:52:51 +0200
commit31d381d5f8a2e4d3abf0644d021966196aa6bd18 (patch)
tree3130f2e3dc8328588a9517c4649f2fb700cdd218
parentc5a2936c6dcf64c52f6b70e21926df5ca953658d (diff)
downloadgstreamer-plugins-bad-31d381d5f8a2e4d3abf0644d021966196aa6bd18.tar.gz
mpdparser: Free UTCTiming struct if there are no values associated with it
CID 1316479
-rw-r--r--ext/dash/gstmpdparser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index f500c1fa0..98ef97824 100644
--- a/ext/dash/gstmpdparser.c
+++ b/ext/dash/gstmpdparser.c
@@ -1822,6 +1822,7 @@ gst_mpdparser_parse_utctiming_node (GList ** list, xmlNode * a_node)
}
xmlFree (method);
}
+
if (gst_mpdparser_get_xml_prop_string (a_node, "value", &value)) {
int max_tokens = 0;
if (GST_MPD_UTCTIMING_TYPE_DIRECT == new_timing->method) {
@@ -1833,6 +1834,8 @@ gst_mpdparser_parse_utctiming_node (GList ** list, xmlNode * a_node)
new_timing->urls = g_strsplit (value, " ", max_tokens);
xmlFree (value);
*list = g_list_append (*list, new_timing);
+ } else {
+ gst_mpdparser_free_utctiming_node (new_timing);
}
}