]> git.sesse.net Git - vlc/commitdiff
dc1394: path coming from MRL, need utf8_open()
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:28:29 +0000 (23:28 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:43:04 +0000 (23:43 +0300)
modules/access/dc1394.c

index 5d2607a123d16f5edb2a63d75955ce0ec6528164..0c174c6f48b331c7c297b09acef32b64669bc242 100644 (file)
@@ -34,7 +34,7 @@
 #include <vlc_plugin.h>
 #include <vlc_input.h>
 #include <vlc_demux.h>
-
+#include <vlc_charset.h>
 
 #ifdef HAVE_FCNTL_H
 #   include <fcntl.h>
@@ -545,7 +545,7 @@ static void OpenAudioDev( demux_t *p_demux )
     int i_format = AFMT_S16_LE;
     int result;
 
-    p_sys->fd_audio = open( psz_device, O_RDONLY | O_NONBLOCK );
+    p_sys->fd_audio = utf8_open( psz_device, O_RDONLY | O_NONBLOCK );
     if( p_sys->fd_audio  < 0 )
     {
         msg_Err( p_demux, "cannot open audio device (%s)", psz_device );