]> git.sesse.net Git - vlc/commitdiff
OSS: use utf8_open() for O_CLOEXEC
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:20:59 +0000 (23:20 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:20:59 +0000 (23:20 +0300)
modules/audio_output/oss.c

index a5659eb1fda4e8e7a335e073665759cbc8369010..839715be775501f32219f0f3f0c88ab899d91fe2 100644 (file)
@@ -290,7 +290,7 @@ static int Open( vlc_object_t *p_this )
      * wait forever until the device is available. Since this breaks the
      * OSS spec, we immediately put it back to blocking mode if the
      * operation was successful. */
-    p_sys->i_fd = open( psz_device, O_WRONLY | O_NDELAY );
+    p_sys->i_fd = utf8_open( psz_device, O_WRONLY | O_NDELAY );
     if( p_sys->i_fd < 0 )
     {
         msg_Err( p_aout, "cannot open audio device (%s)", psz_device );