Commit 31bf9857 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't test if a directory exists twice in a row

Better yet try to parse it directly...
parent 04aae4db
......@@ -100,9 +100,6 @@ int ArtCallback( httpd_handler_sys_t *p_args,
#if !defined(__APPLE__) && !defined(SYS_BEOS) && !defined(WIN32)
static int DirectoryCheck( const char *psz_dir )
{
DIR *p_dir;
#ifdef HAVE_SYS_STAT_H
struct stat stat_info;
if( ( utf8_stat( psz_dir, &stat_info ) == -1 )
......@@ -110,14 +107,6 @@ static int DirectoryCheck( const char *psz_dir )
{
return VLC_EGENERIC;
}
#endif
if( ( p_dir = utf8_opendir( psz_dir ) ) == NULL )
{
return VLC_EGENERIC;
}
closedir( p_dir );
return VLC_SUCCESS;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment