[vlc-devel] commit: Convert some stat to utf8_stat (Derk-Jan Hartman )

git version control git at videolan.org
Thu Oct 2 21:34:17 CEST 2008


vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Thu Oct  2 21:33:24 2008 +0200| [d044c1d807b4f0c1e8f0e61da2eb674fdc9ccd03] | committer: Derk-Jan Hartman 

Convert some stat to utf8_stat

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d044c1d807b4f0c1e8f0e61da2eb674fdc9ccd03
---

 modules/access/dvdnav.c     |    2 +-
 modules/access/vcd/cdrom.c  |    2 +-
 modules/control/http/util.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 6538f94..9c46770 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -1434,7 +1434,7 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
         return VLC_SUCCESS;
     }
 
-    if( stat( psz_name, &stat_info ) || !S_ISREG( stat_info.st_mode ) )
+    if( utf8_stat( psz_name, &stat_info ) || !S_ISREG( stat_info.st_mode ) )
     {
         /* Let dvdnav_open() do the probing */
         return VLC_SUCCESS;
diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c
index b411c44..e7ea50f 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -111,7 +111,7 @@ vcddev_t *ioctl_Open( vlc_object_t *p_this, const char *psz_dev )
     }
 
 #else
-    if( stat( psz_dev, &fileinfo ) < 0 )
+    if( utf8_stat( psz_dev, &fileinfo ) < 0 )
     {
         free( p_vcddev );
         return NULL;
diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index 54ba5c4..5f068f8 100644
--- a/modules/control/http/util.c
+++ b/modules/control/http/util.c
@@ -186,7 +186,7 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root,
         ACL_Destroy( p_acl );
 
         struct stat st;
-        if( stat( dir, &st ) == 0 )
+        if( utf8_stat( dir, &st ) == 0 )
         {
             closedir( p_dir );
             return VLC_EGENERIC;




More information about the vlc-devel mailing list