Commit 39c3f27b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

quartz: remove unused XML validator

parent 65b041af
...@@ -794,7 +794,6 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out, ...@@ -794,7 +794,6 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out,
{ {
int rv = VLC_SUCCESS; int rv = VLC_SUCCESS;
stream_t *p_sub = NULL; stream_t *p_sub = NULL;
xml_t *p_xml = NULL;
xml_reader_t *p_xml_reader = NULL; xml_reader_t *p_xml_reader = NULL;
VLC_UNUSED(p_chroma_list); VLC_UNUSED(p_chroma_list);
...@@ -809,9 +808,7 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out, ...@@ -809,9 +808,7 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out,
strlen(p_region_in->psz_html), strlen(p_region_in->psz_html),
true); true);
if (p_sub) { if (p_sub) {
p_xml = xml_Create(p_filter); p_xml_reader = xml_ReaderCreate(p_filter, p_sub);
if (p_xml) {
p_xml_reader = xml_ReaderCreate(p_xml, p_sub);
if (p_xml_reader) { if (p_xml_reader) {
/* Look for Root Node */ /* Look for Root Node */
const char *name; const char *name;
...@@ -819,8 +816,7 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out, ...@@ -819,8 +816,7 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out,
== XML_READER_STARTELEM) { == XML_READER_STARTELEM) {
if (!strcasecmp("karaoke", name)) { if (!strcasecmp("karaoke", name)) {
/* We're going to have to render the text a number /* We're going to have to render the text a number
* of times to show the progress marker on the text. * of times to show the progress marker on the text. */
*/
var_SetBool(p_filter, "text-rerender", true); var_SetBool(p_filter, "text-rerender", true);
} else if (strcasecmp("text", name)) { } else if (strcasecmp("text", name)) {
/* Only text and karaoke tags are supported */ /* Only text and karaoke tags are supported */
...@@ -858,8 +854,6 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out, ...@@ -858,8 +854,6 @@ static int RenderHtml(filter_t *p_filter, subpicture_region_t *p_region_out,
xml_ReaderDelete(p_xml_reader); xml_ReaderDelete(p_xml_reader);
} }
xml_Delete(p_xml);
}
stream_Delete(p_sub); stream_Delete(p_sub);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment