Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
3d549e2b
Commit
3d549e2b
authored
Aug 18, 2014
by
Rémi Denis-Courmont
Browse files
DTV: open device nodes in non-blocking mode
parent
67ba9eb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/dtv/linux.c
View file @
3d549e2b
...
...
@@ -181,10 +181,7 @@ static int dvb_open_node (dvb_device_t *d, const char *type, int flags)
char
path
[
strlen
(
type
)
+
4
];
snprintf
(
path
,
sizeof
(
path
),
"%s%u"
,
type
,
d
->
device
);
fd
=
vlc_openat
(
d
->
dir
,
path
,
flags
);
if
(
fd
!=
-
1
)
fcntl
(
fd
,
F_SETFL
,
fcntl
(
fd
,
F_GETFL
)
|
O_NONBLOCK
);
return
fd
;
return
vlc_openat
(
d
->
dir
,
path
,
flags
|
O_NONBLOCK
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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