[vlc-devel] commit: MGA: ASCII path, use utf8_open for close-on-exec ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Oct 17 22:51:08 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 23:35:49 2009 +0300| [fce940dba1777e76e62cf2a05c626cb74c2441ae] | committer: Rémi Denis-Courmont 

MGA: ASCII path, use utf8_open for close-on-exec

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

 modules/video_output/mga.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/mga.c b/modules/video_output/mga.c
index 65ed9ee..0a1a2fc 100644
--- a/modules/video_output/mga.c
+++ b/modules/video_output/mga.c
@@ -38,6 +38,7 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_vout.h>
+#include <vlc_charset.h>
 
 #ifdef SYS_BSD
 #include <sys/types.h>                                     /* typedef ushort */
@@ -139,7 +140,7 @@ static int Create( vlc_object_t *p_this )
     if( p_vout->p_sys == NULL )
         return( 1 );
 
-    p_vout->p_sys->i_fd = open( "/dev/mga_vid", O_RDWR );
+    p_vout->p_sys->i_fd = utf8_open( "/dev/mga_vid", O_RDWR );
     if( p_vout->p_sys->i_fd == -1 )
     {
         msg_Err( p_vout, "cannot open MGA driver /dev/mga_vid" );




More information about the vlc-devel mailing list