diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index e53f062390..1b6394d945 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -1409,6 +1409,8 @@ gst_mpdparser_parse_program_info_node (GList ** list, xmlNode * a_node) *list = g_list_append (*list, new_prog_info); GST_LOG ("attributes of ProgramInformation node:"); + new_prog_info->lang = + gst_mpdparser_get_xml_prop_string (a_node, "lang"); new_prog_info->moreInformationURL = gst_mpdparser_get_xml_prop_string (a_node, "moreInformationURL"); @@ -1846,6 +1848,7 @@ static void gst_mpdparser_free_prog_info_node (GstProgramInformationNode * prog_info_node) { if (prog_info_node) { + g_free (prog_info_node->lang); g_free (prog_info_node->moreInformationURL); g_free (prog_info_node->Title); g_free (prog_info_node->Source); diff --git a/ext/dash/gstmpdparser.h b/ext/dash/gstmpdparser.h index d2340b2c0c..2475610b86 100644 --- a/ext/dash/gstmpdparser.h +++ b/ext/dash/gstmpdparser.h @@ -127,7 +127,7 @@ struct _GstSNode struct _GstSegmentTimelineNode { - /* list of S nodes (1..N) */ + /* list of S nodes */ GList *S; }; @@ -336,6 +336,7 @@ struct _GstPeriodNode struct _GstProgramInformationNode { + gchar *lang; /* LangVectorType RFC 5646 */ gchar *moreInformationURL; /* children nodes */ gchar *Title;