]> git.sesse.net Git - vlc/blobdiff - modules/access/oss.c
OSS: path from VLC core (or ASCII), need utf8_open()
[vlc] / modules / access / 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 )
     {