[vlc-commits] XML: fix incomplete last commit
Pierre Ynard
git at videolan.org
Fri Jan 21 09:35:36 CET 2011
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Jan 21 09:35:09 2011 +0100| [4a5b1b08757ceaca20fd15891013bcee1af6ca57] | committer: Pierre Ynard
XML: fix incomplete last commit
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a5b1b08757ceaca20fd15891013bcee1af6ca57
---
modules/misc/xml/libxml.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/misc/xml/libxml.c b/modules/misc/xml/libxml.c
index d0f3d7f..6ce4424 100644
--- a/modules/misc/xml/libxml.c
+++ b/modules/misc/xml/libxml.c
@@ -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 )
More information about the vlc-commits
mailing list