[vlc-devel] commit: DVB: ASCII paths, utf8_open() provides close-on-exec ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Oct 17 22:51:05 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 23:29:25 2009 +0300| [195cf643d903c8b68c574663031af6f2e1b0e797] | committer: Rémi Denis-Courmont
DVB: ASCII paths, utf8_open() provides close-on-exec
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=195cf643d903c8b68c574663031af6f2e1b0e797
---
modules/access/dvb/linux_dvb.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/access/dvb/linux_dvb.c b/modules/access/dvb/linux_dvb.c
index 20167cd..af792d8 100644
--- a/modules/access/dvb/linux_dvb.c
+++ b/modules/access/dvb/linux_dvb.c
@@ -40,6 +40,7 @@
#include <unistd.h>
#include <sys/stat.h>
#include <sys/poll.h>
+#include <vlc_charset.h>
/* DVB Card Drivers */
#include <linux/dvb/version.h>
@@ -1333,7 +1334,7 @@ int DMXSetFilter( access_t * p_access, int i_pid, int * pi_fd, int i_type )
}
msg_Dbg( p_access, "Opening device %s", dmx );
- if( (*pi_fd = open(dmx, O_RDWR)) < 0 )
+ if( (*pi_fd = utf8_open(dmx, O_RDWR)) < 0 )
{
msg_Err( p_access, "DMXSetFilter: opening device failed (%m)" );
return VLC_EGENERIC;
@@ -1490,7 +1491,7 @@ int DVROpen( access_t * p_access )
}
msg_Dbg( p_access, "Opening device %s", dvr );
- if( (p_sys->i_handle = open(dvr, O_RDONLY)) < 0 )
+ if( (p_sys->i_handle = utf8_open(dvr, O_RDONLY)) < 0 )
{
msg_Err( p_access, "DVROpen: opening device failed (%m)" );
return VLC_EGENERIC;
@@ -1540,7 +1541,7 @@ int CAMOpen( access_t *p_access )
memset( &caps, 0, sizeof( ca_caps_t ));
msg_Dbg( p_access, "Opening device %s", ca );
- if( (p_sys->i_ca_handle = open(ca, O_RDWR | O_NONBLOCK)) < 0 )
+ if( (p_sys->i_ca_handle = utf8_open(ca, O_RDWR | O_NONBLOCK)) < 0 )
{
msg_Warn( p_access, "CAMInit: opening CAM device failed (%m)" );
p_sys->i_ca_handle = 0;
More information about the vlc-devel
mailing list