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
51299c84
Commit
51299c84
authored
Jun 12, 2015
by
Erwan Tulou
Browse files
skins2: replace ifstream() with vlc_stat()
parent
49c72956
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins2/parser/builder.cpp
View file @
51299c84
...
...
@@ -57,8 +57,9 @@
#include "../utils/var_bool.hpp"
#include "../utils/var_text.hpp"
#include <sys/stat.h>
#include <vlc_fs.h>
#include <vlc_image.h>
#include <fstream>
Builder
::
Builder
(
intf_thread_t
*
pIntf
,
const
BuilderData
&
rData
,
...
...
@@ -1260,8 +1261,9 @@ string Builder::getFilePath( const string &rFileName ) const
string
full_path
=
m_path
+
sep
+
sFromLocale
(
file
);
// check that the file exists and can be read
if
(
ifstream
(
full_path
.
c_str
()
).
fail
()
)
// check that the file exists
struct
stat
stat
;
if
(
vlc_stat
(
full_path
.
c_str
(),
&
stat
)
)
{
msg_Err
(
getIntf
(),
"missing file: %s"
,
file
.
c_str
()
);
full_path
=
""
;
...
...
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