mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
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
1 changed files with 4 additions and 5 deletions
|
@ -937,7 +937,7 @@ static gboolean
|
|||
gst_mpdparser_get_xml_node_content (xmlNode * a_node, gchar ** content)
|
||||
{
|
||||
xmlChar *node_content = NULL;
|
||||
gboolean exists = TRUE;
|
||||
gboolean exists = FALSE;
|
||||
|
||||
node_content = xmlNodeGetContent (a_node);
|
||||
if (node_content) {
|
||||
|
@ -1061,12 +1061,11 @@ gst_mpdparser_parse_content_component_node (GList ** list, xmlNode * a_node)
|
|||
static void
|
||||
gst_mpdparser_parse_location_node (GList ** list, xmlNode * a_node)
|
||||
{
|
||||
gchar *location;
|
||||
gchar *location = NULL;
|
||||
|
||||
GST_LOG ("content of Location node:");
|
||||
gst_mpdparser_get_xml_node_content (a_node, &location);
|
||||
|
||||
*list = g_list_append (*list, location);
|
||||
if (gst_mpdparser_get_xml_node_content (a_node, &location))
|
||||
*list = g_list_append (*list, location);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue