Framebuffer OSD: path from VLC config, need utf8_open
[vlc.git] / modules / gui / fbosd.c
index 17d4b46..fbfdf30 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
+#include <vlc_charset.h>
 
 #include <errno.h>
 #include <stdlib.h>                                                /* free() */
@@ -1059,7 +1060,7 @@ static int OpenDisplay( intf_thread_t *p_intf )
         return VLC_EGENERIC;
     }
 
-    p_sys->i_fd = open( psz_device, O_RDWR );
+    p_sys->i_fd = utf8_open( psz_device, O_RDWR );
     if( p_sys->i_fd == -1 )
     {
         msg_Err( p_intf, "cannot open %s (%m)", psz_device );