Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
195cf643
Commit
195cf643
authored
Oct 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVB: ASCII paths, utf8_open() provides close-on-exec
parent
1188e4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/access/dvb/linux_dvb.c
modules/access/dvb/linux_dvb.c
+4
-3
No files found.
modules/access/dvb/linux_dvb.c
View file @
195cf643
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment