[vlc-devel] commit: Use fstat()! ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue May 20 18:02:23 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue May 20 18:47:25 2008 +0300| [cca9e206e38081bcb72ce16e16b8dfdd954a48f7]

Use fstat()!

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

 modules/misc/svg.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/misc/svg.c b/modules/misc/svg.c
index 12e1084..d278bee 100644
--- a/modules/misc/svg.c
+++ b/modules/misc/svg.c
@@ -184,10 +184,8 @@ static char *svg_GetTemplate( vlc_object_t *p_this )
         else
         {
             struct stat s;
-            int i_ret;
 
-            i_ret = utf8_stat( psz_filename, &s );
-            if( i_ret )
+            if( fstat( fileno( file ), &s ) )
             {
                 /* Problem accessing file information. Should not
                    happen as we could open it. */




More information about the vlc-devel mailing list