Commit fce940db authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent 7742fb3d
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_vout.h> #include <vlc_vout.h>
#include <vlc_charset.h>
#ifdef SYS_BSD #ifdef SYS_BSD
#include <sys/types.h> /* typedef ushort */ #include <sys/types.h> /* typedef ushort */
...@@ -139,7 +140,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -139,7 +140,7 @@ static int Create( vlc_object_t *p_this )
if( p_vout->p_sys == NULL ) if( p_vout->p_sys == NULL )
return( 1 ); 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 ) if( p_vout->p_sys->i_fd == -1 )
{ {
msg_Err( p_vout, "cannot open MGA driver /dev/mga_vid" ); msg_Err( p_vout, "cannot open MGA driver /dev/mga_vid" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment