Skip to content

Commit

Permalink
Merge pull request #17 from SRGSSR/feature/dfxp-ignore-blank
Browse files Browse the repository at this point in the history
remove blank nodes when parsing dfxp subtitles
  • Loading branch information
SebastienChauvin authored Jul 17, 2024
2 parents 28a117c + c140415 commit d16ca83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vod/subtitle/dfxp_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ dfxp_parse(
return VOD_ALLOC_FAILED;
}

xmlCtxtUseOptions(ctxt, XML_PARSE_RECOVER | XML_PARSE_NOWARNING | XML_PARSE_NONET);
xmlCtxtUseOptions(ctxt, XML_PARSE_RECOVER | XML_PARSE_NOWARNING | XML_PARSE_NONET | XML_PARSE_NOBLANKS);

ctxt->sax->setDocumentLocator = NULL;
ctxt->sax->error = dfxp_xml_sax_error;
Expand Down

0 comments on commit d16ca83

Please sign in to comment.