Changeset d59f9b354c873e267857dc53dd737cf08dc9eacb
- 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
| r39401d0 |
rd59f9b3 |
|
| 250 | 250 | { |
|---|
| 251 | 251 | msg_Err( p_intf , "unable to parse directory" ); |
|---|
| 252 | | closedir( p_dir ); |
|---|
| | 252 | vlc_closedir_wrapper( p_dir ); |
|---|
| 253 | 253 | free( f ); |
|---|
| 254 | 254 | return( VLC_ENOMEM ); |
|---|
| … | … | |
| 333 | 333 | |
|---|
| 334 | 334 | ACL_Destroy( p_acl ); |
|---|
| 335 | | closedir( p_dir ); |
|---|
| | 335 | vlc_closedir_wrapper( p_dir ); |
|---|
| 336 | 336 | |
|---|
| 337 | 337 | return VLC_SUCCESS; |
|---|
| r48c1a9f |
rd59f9b3 |
|
| 1550 | 1550 | LocaleFree (psz_file); |
|---|
| 1551 | 1551 | } |
|---|
| 1552 | | closedir( p_src_dir ); |
|---|
| | 1552 | vlc_closedir_wrapper( p_src_dir ); |
|---|
| 1553 | 1553 | } |
|---|
| 1554 | 1554 | } |
|---|
| r42b8c57 |
rd59f9b3 |
|
| 1996 | 1996 | sizeof(struct dir_entry_t*), &comp_dir_entries ); |
|---|
| 1997 | 1997 | |
|---|
| 1998 | | closedir( p_current_dir ); |
|---|
| | 1998 | vlc_closedir_wrapper( p_current_dir ); |
|---|
| 1999 | 1999 | return; |
|---|
| 2000 | 2000 | } |
|---|
| rb99b38e |
rd59f9b3 |
|
| 598 | 598 | || S_ISLNK( st2.st_mode ) || ( st1.st_ino != st2.st_ino ) ) |
|---|
| 599 | 599 | { |
|---|
| 600 | | closedir( dir ); |
|---|
| | 600 | vlc_closedir_wrapper( dir ); |
|---|
| 601 | 601 | return VLC_EGENERIC; |
|---|
| 602 | 602 | } |
|---|
| … | … | |
| 620 | 620 | } |
|---|
| 621 | 621 | |
|---|
| 622 | | closedir( dir ); |
|---|
| | 622 | vlc_closedir_wrapper( dir ); |
|---|
| 623 | 623 | return VLC_SUCCESS; |
|---|
| 624 | 624 | } |
|---|
| r0651db5 |
rd59f9b3 |
|
| 521 | 521 | |
|---|
| 522 | 522 | /* Open the file corresponding to pathname */ |
|---|
| 523 | | if ((fs = fopen(pathname, "r")) == 0) { |
|---|
| | 523 | if ((fs = utf8_fopen(pathname, "r")) == 0) { |
|---|
| 524 | 524 | if (PRESET_DEBUG) printf("load_preset_file: loading of file %s failed!\n", pathname); |
|---|
| 525 | 525 | return ERROR; |
|---|
| … | … | |
| 793 | 793 | |
|---|
| 794 | 794 | /* Open the file corresponding to pathname */ |
|---|
| 795 | | if ((fs = fopen(filename, "w+")) == 0) { |
|---|
| | 795 | if ((fs = utf8_fopen(filename, "w+")) == 0) { |
|---|
| 796 | 796 | if (PRESET_DEBUG) printf("savePreset: failed to create filename \"%s\"!\n", filename); |
|---|
| 797 | 797 | return; |
|---|
| r449a9c7 |
rd59f9b3 |
|
| 40 | 40 | #include <vlc_image.h> |
|---|
| 41 | 41 | #include <vlc_osd.h> |
|---|
| | 42 | #include "charset.h" |
|---|
| 42 | 43 | |
|---|
| 43 | 44 | #include <vlc_strings.h> |
|---|
| … | … | |
| 637 | 638 | if( !psz_prefix ) psz_prefix = strdup( "vlcsnap-" ); |
|---|
| 638 | 639 | |
|---|
| 639 | | closedir( path ); |
|---|
| | 640 | vlc_closedir_wrapper( path ); |
|---|
| 640 | 641 | if( var_GetBool( p_vout, "snapshot-sequential" ) == VLC_TRUE ) |
|---|
| 641 | 642 | { |
|---|