Skip to content

Commit

Permalink
Merge pull request #741 from g-maxime/typo
Browse files Browse the repository at this point in the history
Update after MIL changes
  • Loading branch information
JeromeMartinez authored Oct 2, 2022
2 parents bc17abc + 8058422 commit 5c0d348
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
10 changes: 7 additions & 3 deletions Source/Common/XsltPolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,10 @@ int XsltPolicy::parse_policy_rule(xmlNodePtr node, bool is_root, XsltPolicy* cur
{
r->field = std::string((const char*)field);
xmlFree(field);

// Handle old typo in MediaInfoLib
if (r->field == "TimeCode_Striped")
r->field = "TimeCode_Stripped";
}

//Get scope
Expand Down Expand Up @@ -713,9 +717,9 @@ int XsltPolicy::create_rule_from_media_track_child(xmlNodePtr node, const std::s
|| name == "Delay"
|| name == "Count"
|| name == "CodecID_Url"
|| name == "Errors"
|| name == "Warnings"
|| name == "Infos")
|| name == "ConformanceErrors"
|| name == "ConformanceWarnings"
|| name == "ConformanceInfos")
continue;

if(xmlChildElementCount(child))
Expand Down
Loading

0 comments on commit 5c0d348

Please sign in to comment.