Skip <EBMLVoid> elements in XML files

Fixes #802.
This commit is contained in:
Moritz Bunkus 2012-12-05 22:35:38 +01:00
parent ec4c1c19e9
commit 3d7e0020a4
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-12-05 Moritz Bunkus <moritz@bunkus.org>
* all: bug fix: EBML void elements will be skipped when reading
structures from XML (e.g. chapters). Fixes #802.
2012-12-02 Moritz Bunkus <moritz@bunkus.org>
* all: bug fix: EBML void elements will be skipped when saving

View File

@ -361,6 +361,10 @@ void
ebml_converter_c::to_ebml_recursively(EbmlMaster &parent,
pugi::xml_node &node)
const {
// Skip <EBMLVoid> elements.
if (std::string(node.name()) == "EBMLVoid")
return;
std::map<std::string, bool> handled_attributes;
auto converted_node = convert_node_or_attribute_to_ebml(parent, node, pugi::xml_attribute{}, handled_attributes);