Changeset d59f9b354c873e267857dc53dd737cf08dc9eacb

Show
Ignore:
Timestamp:
12/11/06 17:22:45 (2 years ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1165854165 +0000
git-parent:

[8ef2385833c0c327407d61ef28f641c72063ce68]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1165854165 +0000
Message:

* forwardport: [18328]-[18330]

  • utf8_fopen for: galaktos and snapshots
  • vlc_closedir_wrapper for: webintf, mkv, ncurses and gnutls
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/http/util.c

    r39401d0 rd59f9b3  
    250250            { 
    251251                msg_Err( p_intf , "unable to parse directory" ); 
    252                 closedir( p_dir ); 
     252                vlc_closedir_wrapper( p_dir ); 
    253253                free( f ); 
    254254                return( VLC_ENOMEM ); 
     
    333333 
    334334    ACL_Destroy( p_acl ); 
    335     closedir( p_dir ); 
     335    vlc_closedir_wrapper( p_dir ); 
    336336 
    337337    return VLC_SUCCESS; 
  • modules/demux/mkv.cpp

    r48c1a9f rd59f9b3  
    15501550                    LocaleFree (psz_file); 
    15511551                } 
    1552                 closedir( p_src_dir ); 
     1552                vlc_closedir_wrapper( p_src_dir ); 
    15531553            } 
    15541554        } 
  • modules/gui/ncurses.c

    r42b8c57 rd59f9b3  
    19961996               sizeof(struct dir_entry_t*), &comp_dir_entries ); 
    19971997 
    1998         closedir( p_current_dir ); 
     1998        vlc_closedir_wrapper( p_current_dir ); 
    19991999        return; 
    20002000    } 
  • modules/misc/gnutls.c

    rb99b38e rd59f9b3  
    598598         || S_ISLNK( st2.st_mode ) || ( st1.st_ino != st2.st_ino ) ) 
    599599        { 
    600             closedir( dir ); 
     600            vlc_closedir_wrapper( dir ); 
    601601            return VLC_EGENERIC; 
    602602        } 
     
    620620    } 
    621621 
    622     closedir( dir ); 
     622    vlc_closedir_wrapper( dir ); 
    623623    return VLC_SUCCESS; 
    624624} 
  • modules/visualization/galaktos/preset.c

    r0651db5 rd59f9b3  
    521521   
    522522  /* Open the file corresponding to pathname */ 
    523   if ((fs = fopen(pathname, "r")) == 0) { 
     523  if ((fs = utf8_fopen(pathname, "r")) == 0) { 
    524524    if (PRESET_DEBUG) printf("load_preset_file: loading of file %s failed!\n", pathname); 
    525525    return ERROR;    
     
    793793   
    794794  /* Open the file corresponding to pathname */ 
    795   if ((fs = fopen(filename, "w+")) == 0) { 
     795  if ((fs = utf8_fopen(filename, "w+")) == 0) { 
    796796    if (PRESET_DEBUG) printf("savePreset: failed to create filename \"%s\"!\n", filename); 
    797797    return;  
  • src/video_output/vout_intf.c

    r449a9c7 rd59f9b3  
    4040#include <vlc_image.h> 
    4141#include <vlc_osd.h> 
     42#include "charset.h" 
    4243 
    4344#include <vlc_strings.h> 
     
    637638        if( !psz_prefix ) psz_prefix = strdup( "vlcsnap-" ); 
    638639 
    639         closedir( path ); 
     640        vlc_closedir_wrapper( path ); 
    640641        if( var_GetBool( p_vout, "snapshot-sequential" ) == VLC_TRUE ) 
    641642        {