Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
49c72956
Commit
49c72956
authored
Jun 12, 2015
by
Erwan Tulou
Browse files
skins2: replace all stat() with vlc_stat()
parent
369d697c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins2/parser/xmlparser.cpp
View file @
49c72956
...
...
@@ -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
()
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment