if( !f->name )
{
msg_Err( p_intf , "unable to parse directory" );
- closedir( p_dir );
+ vlc_closedir_wrapper( p_dir );
free( f );
return( VLC_ENOMEM );
}
}
ACL_Destroy( p_acl );
- closedir( p_dir );
+ vlc_closedir_wrapper( p_dir );
return VLC_SUCCESS;
}
}
LocaleFree (psz_file);
}
- closedir( p_src_dir );
+ vlc_closedir_wrapper( p_src_dir );
}
}
qsort( p_sys->pp_dir_entries, p_sys->i_dir_entries,
sizeof(struct dir_entry_t*), &comp_dir_entries );
- closedir( p_current_dir );
+ vlc_closedir_wrapper( p_current_dir );
return;
}
else
|| fstat( fd, &st1 ) || utf8_lstat( psz_dirname, &st2 )
|| S_ISLNK( st2.st_mode ) || ( st1.st_ino != st2.st_ino ) )
{
- closedir( dir );
+ vlc_closedir_wrapper( dir );
return VLC_EGENERIC;
}
}
gnutls_Addx509File( p_this, cred, path, b_priv );
}
- closedir( dir );
+ vlc_closedir_wrapper( dir );
return VLC_SUCCESS;
}
return FAILURE;
/* Open the file corresponding to pathname */
- if ((fs = fopen(pathname, "r")) == 0) {
+ if ((fs = utf8_fopen(pathname, "r")) == 0) {
if (PRESET_DEBUG) printf("load_preset_file: loading of file %s failed!\n", pathname);
return ERROR;
}
return;
/* Open the file corresponding to pathname */
- if ((fs = fopen(filename, "w+")) == 0) {
+ if ((fs = utf8_fopen(filename, "w+")) == 0) {
if (PRESET_DEBUG) printf("savePreset: failed to create filename \"%s\"!\n", filename);
return;
}
#include <vlc_vout.h>
#include <vlc_image.h>
#include <vlc_osd.h>
+#include "charset.h"
#include <vlc_strings.h>
#include <vlc_charset.h>
char *psz_prefix = var_GetString( p_vout, "snapshot-prefix" );
if( !psz_prefix ) psz_prefix = strdup( "vlcsnap-" );
- closedir( path );
+ vlc_closedir_wrapper( path );
if( var_GetBool( p_vout, "snapshot-sequential" ) == VLC_TRUE )
{
int i_num = var_GetInteger( p_vout, "snapshot-num" );