]> git.sesse.net Git - vlc/commitdiff
XML: fix incomplete last commit
authorPierre Ynard <linkfanel@yahoo.fr>
Fri, 21 Jan 2011 08:35:09 +0000 (09:35 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Fri, 21 Jan 2011 08:35:09 +0000 (09:35 +0100)
modules/misc/xml/libxml.c

index d0f3d7f598269553985ca04bae1c1c09433bf4c9..6ce44245d2e14a93cc092490a35e374842644423 100644 (file)
@@ -200,9 +200,9 @@ static void ReaderClose( vlc_object_t *p_this )
 static int ReaderUseDTD ( xml_reader_t *p_reader )
 {
     /* Activate DTD validation */
-    xmlTextReaderSetParserProp( (void *)p_reader->p_sys,
+    xmlTextReaderSetParserProp( p_reader->p_sys->xml,
                                 XML_PARSER_DEFAULTATTRS, true );
-    xmlTextReaderSetParserProp( (void *)p_reader->p_sys,
+    xmlTextReaderSetParserProp( p_reader->p_sys->xml,
                                 XML_PARSER_VALIDATE, true );
 
     return VLC_SUCCESS;
@@ -263,16 +263,16 @@ skip:
 static char *ReaderValue( xml_reader_t *p_reader )
 {
     const xmlChar *psz_value =
-        xmlTextReaderConstValue( (void *)p_reader->p_sys );
+        xmlTextReaderConstValue( p_reader->p_sys->xml );
 
     return psz_value ? strdup( (const char *)psz_value ) : NULL;
 }
 
 static const char *ReaderNextAttr( xml_reader_t *p_reader )
 {
-    if( xmlTextReaderMoveToNextAttribute( (void *)p_reader->p_sys ) != 1 )
+    if( xmlTextReaderMoveToNextAttribute( p_reader->p_sys->xml ) != 1 )
         return NULL;
-    return (const char *)xmlTextReaderConstValue( (void *)p_reader->p_sys );
+    return (const char *)xmlTextReaderConstValue( p_reader->p_sys->xml );
 }
 
 static int StreamRead( void *p_context, char *p_buffer, int i_buffer )