]> git.sesse.net Git - vlc/blobdiff - src/misc/xml.c
contribs: added Google's libvpx patch for ffmpeg with a couple of compilation fixes...
[vlc] / src / misc / xml.c
index ba6b75c3da608f1513b21c608a343eb180879ad9..0d2625f8b3c6ece215b7ff0c3db0d4be1fbfbeef 100644 (file)
 #include "vlc_xml.h"
 #include "../libvlc.h"
 
+#undef xml_Create
 /*****************************************************************************
  * xml_Create:
  *****************************************************************************
  * Create an instance of an XML parser.
  * Returns NULL on error.
  *****************************************************************************/
-xml_t *__xml_Create( vlc_object_t *p_this )
+xml_t *xml_Create( vlc_object_t *p_this )
 {
     xml_t *p_xml;
 
@@ -43,10 +44,9 @@ xml_t *__xml_Create( vlc_object_t *p_this )
                                "xml" );
     vlc_object_attach( p_xml, p_this );
 
-    p_xml->p_module = module_need( p_xml, "xml", 0, 0 );
+    p_xml->p_module = module_need( p_xml, "xml", NULL, false );
     if( !p_xml->p_module )
     {
-        vlc_object_detach( p_xml );
         vlc_object_release( p_xml );
         msg_Err( p_this, "XML provider not found" );
         return NULL;
@@ -61,6 +61,5 @@ xml_t *__xml_Create( vlc_object_t *p_this )
 void xml_Delete( xml_t *p_xml )
 {
     module_unneed( p_xml, p_xml->p_module );
-    vlc_object_detach( p_xml );
     vlc_object_release( p_xml );
 }