]> git.sesse.net Git - vlc/blobdiff - src/misc/xml.c
qt4(Win32): correct crash when saving preferences
[vlc] / src / misc / xml.c
index f49c7ee6474760624ca1b360fc5328561bae2682..e5c73ab671f7c7afa8d149c18702e793c05e1755 100644 (file)
@@ -25,9 +25,9 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
-
+#include <vlc_common.h>
 #include "vlc_xml.h"
+#include "../libvlc.h"
 
 /*****************************************************************************
  * xml_Create:
@@ -39,10 +39,11 @@ xml_t *__xml_Create( vlc_object_t *p_this )
 {
     xml_t *p_xml;
 
-    p_xml = vlc_object_create( p_this, VLC_OBJECT_XML );
+    p_xml = vlc_custom_create( p_this, sizeof( *p_xml ), VLC_OBJECT_GENERIC,
+                               "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 );
@@ -59,7 +60,7 @@ xml_t *__xml_Create( vlc_object_t *p_this )
  *****************************************************************************/
 void xml_Delete( xml_t *p_xml )
 {
-    module_Unneed( p_xml, p_xml->p_module );
+    module_unneed( p_xml, p_xml->p_module );
     vlc_object_detach( p_xml );
     vlc_object_release( p_xml );
 }