[vlc-devel] commit: OSS: path from VLC core (or ASCII), need utf8_open() ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Oct 17 22:51:06 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 23:30:26 2009 +0300| [3e3a32b36ca76e5b87844706dbc8af23f95ab35e] | committer: Rémi Denis-Courmont
OSS: path from VLC core (or ASCII), need utf8_open()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e3a32b36ca76e5b87844706dbc8af23f95ab35e
---
modules/access/oss.c | 6 +++---
modules/audio_output/oss.c | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/access/oss.c b/modules/access/oss.c
index 0302cbd..41a7197 100644
--- a/modules/access/oss.c
+++ b/modules/access/oss.c
@@ -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 )
{
diff --git a/modules/audio_output/oss.c b/modules/audio_output/oss.c
index 839715b..c605b58 100644
--- a/modules/audio_output/oss.c
+++ b/modules/audio_output/oss.c
@@ -38,6 +38,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
+#include <vlc_charset.h>
#include <vlc_aout.h>
More information about the vlc-devel
mailing list