1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-12 13:44:56 +02:00

PVR: path from VLC config, need utf8_open()

This commit is contained in:
Rémi Denis-Courmont 2009-10-17 23:31:03 +03:00
parent 3e3a32b36c
commit b1b5d54126

View File

@ -32,6 +32,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_access.h>
#include <vlc_charset.h>
#include <sys/types.h>
#include <sys/stat.h>
@ -664,7 +665,7 @@ static int Open( vlc_object_t * p_this )
free( psz_tofree );
/* open the device */
p_sys->i_fd = open( p_sys->psz_videodev, O_RDWR );
p_sys->i_fd = utf8_open( p_sys->psz_videodev, O_RDWR );
if( p_sys->i_fd < 0 )
{
msg_Err( p_access, "Cannot open device %s (%m).",
@ -774,7 +775,7 @@ static int Open( vlc_object_t * p_this )
if ( (p_sys->i_frequency >= pi_radio_range[0])
&& (p_sys->i_frequency <= pi_radio_range[1]) )
{
p_sys->i_radio_fd = open( p_sys->psz_radiodev, O_RDWR );
p_sys->i_radio_fd = utf8_open( p_sys->psz_radiodev, O_RDWR );
if( p_sys->i_radio_fd < 0 )
{
msg_Err( p_access, "Cannot open radio device (%m)." );