[vlc-commits] WPL: remove unused XML validator

Rémi Denis-Courmont git at videolan.org
Thu Jul 2 20:12:50 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  2 20:49:11 2015 +0300| [cc47781e55c9a0da5eac43432b5d1ccd1dc09fed] | committer: Rémi Denis-Courmont

WPL: remove unused XML validator

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc47781e55c9a0da5eac43432b5d1ccd1dc09fed
---

 modules/demux/playlist/wpl.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/modules/demux/playlist/wpl.c b/modules/demux/playlist/wpl.c
index 707edd9..121ffd2 100644
--- a/modules/demux/playlist/wpl.c
+++ b/modules/demux/playlist/wpl.c
@@ -32,7 +32,6 @@
 
 struct demux_sys_t
 {
-    xml_t* p_xml;
     xml_reader_t* p_reader;
     char* psz_prefix;
 };
@@ -164,8 +163,6 @@ void Close_WPL( vlc_object_t* p_this )
     free( p_sys->psz_prefix );
     if ( p_sys->p_reader )
         xml_ReaderDelete( p_sys->p_reader );
-    if ( p_sys->p_xml )
-        xml_Delete( p_sys->p_xml );
     free( p_sys );
 }
 
@@ -182,15 +179,7 @@ int Import_WPL( vlc_object_t* p_this )
 
     demux_sys_t* p_sys = p_demux->p_sys;
 
-    p_sys->p_xml = xml_Create( p_demux );
-    if ( !p_sys->p_xml )
-    {
-        msg_Err( p_demux, "Failed to create an XML parser" );
-        Close_WPL( p_this );
-        return VLC_EGENERIC;
-    }
-
-    p_sys->p_reader = xml_ReaderCreate( p_sys->p_xml, p_demux->s );
+    p_sys->p_reader = xml_ReaderCreate( p_this, p_demux->s );
     if ( !p_sys->p_reader )
     {
         msg_Err( p_demux, "Failed to create an XML reader" );



More information about the vlc-commits mailing list