From c14041594aab3a14d5b6c8280851eda9546b01b5 Mon Sep 17 00:00:00 2001 From: Bob Gaudaen Date: Fri, 26 Jun 2020 18:37:33 +0200 Subject: [PATCH] remove blank nodes when parsing dfxp subtitles --- vod/subtitle/dfxp_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vod/subtitle/dfxp_format.c b/vod/subtitle/dfxp_format.c index f3608ca5..5047aeef 100644 --- a/vod/subtitle/dfxp_format.c +++ b/vod/subtitle/dfxp_format.c @@ -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;