Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c6ab35db
Commit
c6ab35db
authored
Jan 16, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file: handle
fd://<fd
>/<path>
parent
f5ffcbe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
modules/access/file.c
modules/access/file.c
+20
-1
No files found.
modules/access/file.c
View file @
c6ab35db
...
...
@@ -73,6 +73,7 @@
#endif
#include <vlc_charset.h>
#include <vlc_url.h>
struct
access_sys_t
{
...
...
@@ -139,7 +140,25 @@ int Open( vlc_object_t *p_this )
int
fd
=
-
1
;
if
(
!
strcasecmp
(
p_access
->
psz_access
,
"fd"
))
fd
=
dup
(
atoi
(
path
));
{
char
*
end
;
int
oldfd
=
strtol
(
path
,
&
end
,
10
);
if
(
*
end
==
'\0'
)
fd
=
dup
(
oldfd
);
#ifdef HAVE_FDOPENDIR
else
if
(
*
end
==
'/'
&&
end
>
path
)
{
char
*
name
=
decode_URI_duplicate
(
end
-
1
);
if
(
name
!=
NULL
)
/* TODO: ToLocale(), FD_CLOEXEC */
{
name
[
0
]
=
'.'
;
fd
=
openat
(
oldfd
,
name
,
O_RDONLY
|
O_NONBLOCK
);
free
(
name
);
}
}
#endif
}
else
{
msg_Dbg
(
p_access
,
"opening file `%s'"
,
path
);
...
...
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