Skip to content

Commit 5c0d348

Browse files
Merge pull request #741 from g-maxime/typo
Update after MIL changes
2 parents bc17abc + 8058422 commit 5c0d348

3 files changed

Lines changed: 19 additions & 15 deletions

File tree

Source/Common/XsltPolicy.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,10 @@ int XsltPolicy::parse_policy_rule(xmlNodePtr node, bool is_root, XsltPolicy* cur
452452
{
453453
r->field = std::string((const char*)field);
454454
xmlFree(field);
455+
456+
// Handle old typo in MediaInfoLib
457+
if (r->field == "TimeCode_Striped")
458+
r->field = "TimeCode_Stripped";
455459
}
456460

457461
//Get scope
@@ -713,9 +717,9 @@ int XsltPolicy::create_rule_from_media_track_child(xmlNodePtr node, const std::s
713717
|| name == "Delay"
714718
|| name == "Count"
715719
|| name == "CodecID_Url"
716-
|| name == "Errors"
717-
|| name == "Warnings"
718-
|| name == "Infos")
720+
|| name == "ConformanceErrors"
721+
|| name == "ConformanceWarnings"
722+
|| name == "ConformanceInfos")
719723
continue;
720724

721725
if(xmlChildElementCount(child))

0 commit comments

Comments
 (0)