]> git.sesse.net Git - vlc/commitdiff
corrects no dtd found when changing skins
authorJoseph Tulou <brezhoneg1@yahoo.fr>
Sat, 21 Feb 2009 13:22:52 +0000 (14:22 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 22 Feb 2009 22:31:31 +0000 (23:31 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/skins2/parser/xmlparser.cpp

index 9c650bea6ed7ebf03ac1622f5014e512f2ca5759..dd7279b9b00017680c11ad84d3c6dc9d80a7b919 100644 (file)
@@ -45,12 +45,14 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
         return;
     }
 
-    // Avoid duplicate initialization (mutex needed ?)
-    if( !m_initialized )
-    {
-        LoadCatalog();
-        m_initialized = true;
-    }
+    // Avoid duplicate initialization (mutex needed ?) -> doesn't work
+    // Reinitialization required for a new XMLParser
+    // if( !m_initialized )
+    // {
+    //    LoadCatalog();
+    //    m_initialized = true;
+    // }
+    LoadCatalog();
 
     m_pStream = stream_UrlNew( pIntf, rFileName.c_str() );
     if( !m_pStream )