X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fmga.c;h=0a1a2fc5d05f96bc1c2e092b6936201badd039b1;hb=ed5e0de6a200f565724428ac2c548b00d34c6092;hp=65ed9eee092041dd3c0d46c0661666cbb22d9e96;hpb=152b1687c0ec112f3ab1360006d048d6b9cf7258;p=vlc diff --git a/modules/video_output/mga.c b/modules/video_output/mga.c index 65ed9eee09..0a1a2fc5d0 100644 --- a/modules/video_output/mga.c +++ b/modules/video_output/mga.c @@ -38,6 +38,7 @@ #include #include #include +#include #ifdef SYS_BSD #include /* 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" );