]> git.sesse.net Git - vlc/commitdiff
VCD: path from VLC MRL, need utf8_open
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:32:54 +0000 (23:32 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:50:58 +0000 (23:50 +0300)
modules/access/vcd/cdrom.c

index 66eec6874d7616f75b88e8a71727db55bfa5e28a..2fc73dd9b2b688776d81177434111c69910af046 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <vlc_common.h>
 #include <vlc_access.h>
+#include <vlc_charset.h>
 #include <limits.h>
 
 #ifdef HAVE_UNISTD_H
@@ -141,7 +142,7 @@ vcddev_t *ioctl_Open( vlc_object_t *p_this, const char *psz_dev )
         i_ret = win32_vcd_open( p_this, psz_dev, p_vcddev );
 #else
         p_vcddev->i_device_handle = -1;
-        p_vcddev->i_device_handle = open( psz_dev, O_RDONLY | O_NONBLOCK );
+        p_vcddev->i_device_handle = utf8_open( psz_dev, O_RDONLY | O_NONBLOCK );
         i_ret = (p_vcddev->i_device_handle == -1) ? -1 : 0;
 #endif
     }