mpdparse: only add location when node existed
Actually return FALSE when the location node was non-existing Only add the location node when it existed
This commit is contained in:
parent
22b6ec3b2f
commit
6c014f7e36
@ -937,7 +937,7 @@ static gboolean
|
|||||||
gst_mpdparser_get_xml_node_content (xmlNode * a_node, gchar ** content)
|
gst_mpdparser_get_xml_node_content (xmlNode * a_node, gchar ** content)
|
||||||
{
|
{
|
||||||
xmlChar *node_content = NULL;
|
xmlChar *node_content = NULL;
|
||||||
gboolean exists = TRUE;
|
gboolean exists = FALSE;
|
||||||
|
|
||||||
node_content = xmlNodeGetContent (a_node);
|
node_content = xmlNodeGetContent (a_node);
|
||||||
if (node_content) {
|
if (node_content) {
|
||||||
@ -1061,12 +1061,11 @@ gst_mpdparser_parse_content_component_node (GList ** list, xmlNode * a_node)
|
|||||||
static void
|
static void
|
||||||
gst_mpdparser_parse_location_node (GList ** list, xmlNode * a_node)
|
gst_mpdparser_parse_location_node (GList ** list, xmlNode * a_node)
|
||||||
{
|
{
|
||||||
gchar *location;
|
gchar *location = NULL;
|
||||||
|
|
||||||
GST_LOG ("content of Location node:");
|
GST_LOG ("content of Location node:");
|
||||||
gst_mpdparser_get_xml_node_content (a_node, &location);
|
if (gst_mpdparser_get_xml_node_content (a_node, &location))
|
||||||
|
*list = g_list_append (*list, location);
|
||||||
*list = g_list_append (*list, location);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user