[vlc-commits] skins2: replace all stat() with vlc_stat()

Erwan Tulou git at videolan.org
Fri Jun 12 22:03:11 CEST 2015


vlc/vlc-2.2 | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Jun 12 11:04:18 2015 +0200| [6dc293939bc8ca6dd82f42a3910d53ea6f61e9a8] | committer: Erwan Tulou

skins2: replace all stat() with vlc_stat()

(cherry picked from commit 49c72956b06beceda573b3f6eb5d57a3b5ddb414)
Signed-off-by: Erwan Tulou <erwan10 at videolan.org>

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

 modules/gui/skins2/parser/xmlparser.cpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/skins2/parser/xmlparser.cpp b/modules/gui/skins2/parser/xmlparser.cpp
index 4c19bed..c99a03b 100644
--- a/modules/gui/skins2/parser/xmlparser.cpp
+++ b/modules/gui/skins2/parser/xmlparser.cpp
@@ -26,6 +26,7 @@
 #include <vlc_url.h>
 
 #include <sys/stat.h>
+#include <vlc_fs.h>
 
 XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName )
     : SkinObject( pIntf ), m_pXML( NULL ), m_pReader( NULL ), m_pStream( NULL )
@@ -84,7 +85,7 @@ void XMLParser::LoadCatalog()
     for( it = resPath.begin(); it != resPath.end(); ++it )
     {
         string catalog_path = (*it) + sep + "skin.catalog";
-        if( !stat( catalog_path.c_str(), &statBuf ) )
+        if( !vlc_stat( catalog_path.c_str(), &statBuf ) )
         {
             msg_Dbg( getIntf(), "Using catalog %s", catalog_path.c_str() );
             xml_CatalogLoad( m_pXML, catalog_path.c_str() );
@@ -100,7 +101,7 @@ void XMLParser::LoadCatalog()
     for( it = resPath.begin(); it != resPath.end(); ++it )
     {
         string path = (*it) + sep + "skin.dtd";
-        if( !stat( path.c_str(), &statBuf ) )
+        if( !vlc_stat( path.c_str(), &statBuf ) )
         {
             // DTD found
             msg_Dbg( getIntf(), "using DTD %s", path.c_str() );



More information about the vlc-commits mailing list