V4L2: path from VLC, need utf8_open
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:31:48 +0000 (23:31 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:50:57 +0000 (23:50 +0300)
modules/access/v4l2.c

index 2a1c56c..ae5821f 100644 (file)
@@ -1816,7 +1816,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
     const char *psz_device = p_sys->psz_device;
     es_format_t es_fmt;
 
-    if( ( i_fd = open( psz_device, O_RDWR ) ) < 0 )
+    if( ( i_fd = utf8_open( psz_device, O_RDWR ) ) < 0 )
     {
         msg_Err( p_obj, "cannot open device (%m)" );
         goto open_failed;
@@ -2377,7 +2377,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
 
     int i_fd;
 
-    if( ( i_fd = open( psz_device, O_RDWR ) ) < 0 )
+    if( ( i_fd = utf8_open( psz_device, O_RDWR ) ) < 0 )
     {
         msg_Err( p_obj, "cannot open video device '%s' (%m)", psz_device );
         goto open_failed;