From: RĂ©mi Denis-Courmont Date: Sat, 17 Oct 2009 20:30:26 +0000 (+0300) Subject: OSS: path from VLC core (or ASCII), need utf8_open() X-Git-Tag: 1.1.0-ff~2821 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3e3a32b36ca76e5b87844706dbc8af23f95ab35e;p=vlc OSS: path from VLC core (or ASCII), need utf8_open() --- diff --git a/modules/access/oss.c b/modules/access/oss.c index 0302cbda01..41a7197d4d 100644 --- a/modules/access/oss.c +++ b/modules/access/oss.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include @@ -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 ) { diff --git a/modules/audio_output/oss.c b/modules/audio_output/oss.c index 839715be77..c605b58fd1 100644 --- a/modules/audio_output/oss.c +++ b/modules/audio_output/oss.c @@ -38,6 +38,7 @@ #include #include +#include #include