mpdparser: Allow inherit Segment{Base,Template} from Period

Similar to SegmentList, Representation can inherit Segment{Base,Template}
from Period

https://bugzilla.gnome.org/show_bug.cgi?id=780570
This commit is contained in:
Seungha Yang 2017-03-27 10:06:30 +09:00 committed by Thiago Santos
parent e00be27585
commit 6167dab39e

View file

@ -1896,11 +1896,13 @@ gst_mpdparser_parse_representation_node (GList ** list, xmlNode * a_node,
if (cur_node->type == XML_ELEMENT_NODE) { if (cur_node->type == XML_ELEMENT_NODE) {
if (xmlStrcmp (cur_node->name, (xmlChar *) "SegmentBase") == 0) { if (xmlStrcmp (cur_node->name, (xmlChar *) "SegmentBase") == 0) {
gst_mpdparser_parse_seg_base_type_ext (&new_representation->SegmentBase, gst_mpdparser_parse_seg_base_type_ext (&new_representation->SegmentBase,
cur_node, parent->SegmentBase); cur_node, parent->SegmentBase ?
parent->SegmentBase : period_node->SegmentBase);
} else if (xmlStrcmp (cur_node->name, (xmlChar *) "SegmentTemplate") == 0) { } else if (xmlStrcmp (cur_node->name, (xmlChar *) "SegmentTemplate") == 0) {
if (!gst_mpdparser_parse_segment_template_node if (!gst_mpdparser_parse_segment_template_node
(&new_representation->SegmentTemplate, cur_node, (&new_representation->SegmentTemplate, cur_node,
parent->SegmentTemplate)) parent->SegmentTemplate ?
parent->SegmentTemplate : period_node->SegmentTemplate))
goto error; goto error;
} else if (xmlStrcmp (cur_node->name, (xmlChar *) "SegmentList") == 0) { } else if (xmlStrcmp (cur_node->name, (xmlChar *) "SegmentList") == 0) {
if (!gst_mpdparser_parse_segment_list_node if (!gst_mpdparser_parse_segment_list_node