[vlc-devel] commit: corrects no dtd found when changing skins (Joseph Tulou )

git version control git at videolan.org
Sun Feb 22 23:32:34 CET 2009


vlc | branch: master | Joseph Tulou <brezhoneg1 at yahoo.fr> | Sat Feb 21 14:22:52 2009 +0100| [09679e2b945f2d13c0ab4503f9cd92b7a1d7b49d] | committer: Jean-Baptiste Kempf 

corrects no dtd found when changing skins

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/skins2/parser/xmlparser.cpp |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/modules/gui/skins2/parser/xmlparser.cpp b/modules/gui/skins2/parser/xmlparser.cpp
index 9c650be..dd7279b 100644
--- a/modules/gui/skins2/parser/xmlparser.cpp
+++ b/modules/gui/skins2/parser/xmlparser.cpp
@@ -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 )




More information about the vlc-devel mailing list