]> git.sesse.net Git - vlc/commitdiff
OSS: path from VLC core (or ASCII), need utf8_open()
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:30:26 +0000 (23:30 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:50:57 +0000 (23:50 +0300)
modules/access/oss.c
modules/audio_output/oss.c

index 0302cbda01c060c4aa036201b3f5677ede220fd5..41a7197d4dd833da87018a1e9097798186743b6d 100644 (file)
@@ -36,7 +36,7 @@
 #include <vlc_plugin.h>
 #include <vlc_access.h>
 #include <vlc_demux.h>
-#include <vlc_input.h>
+#include <vlc_charset.h>
 
 #include <ctype.h>
 #include <fcntl.h>
@@ -341,7 +341,7 @@ static int OpenAudioDevOss( demux_t *p_demux )
     int i_fd;
     int i_format;
 
-    i_fd = open( p_demux->p_sys->psz_device, O_RDONLY | O_NONBLOCK );
+    i_fd = utf8_open( p_demux->p_sys->psz_device, O_RDONLY | O_NONBLOCK );
 
     if( i_fd < 0 )
     {
@@ -417,7 +417,7 @@ static int OpenAudioDev( demux_t *p_demux )
 static bool ProbeAudioDevOss( demux_t *p_demux, const char *psz_device )
 {
     int i_caps;
-    int i_fd = open( psz_device, O_RDONLY | O_NONBLOCK );
+    int i_fd = utf8_open( psz_device, O_RDONLY | O_NONBLOCK );
 
     if( i_fd < 0 )
     {
index 839715be775501f32219f0f3f0c88ab899d91fe2..c605b58fd1f5ba98223c2c387e62ca12f1246432 100644 (file)
@@ -38,6 +38,7 @@
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
+#include <vlc_charset.h>
 
 #include <vlc_aout.h>