Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
06a4528b
Commit
06a4528b
authored
Jun 26, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fd:// broken by [
370b6cbb
]
file descriptor number is not a file path
parent
d9ab91e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/access/file.c
modules/access/file.c
+4
-3
No files found.
modules/access/file.c
View file @
06a4528b
...
@@ -134,7 +134,6 @@ static bool IsRemote (int fd)
...
@@ -134,7 +134,6 @@ static bool IsRemote (int fd)
int
Open
(
vlc_object_t
*
p_this
)
int
Open
(
vlc_object_t
*
p_this
)
{
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_t
*
p_access
=
(
access_t
*
)
p_this
;
const
char
*
path
=
p_access
->
psz_filepath
;
#ifdef WIN32
#ifdef WIN32
bool
is_remote
=
false
;
bool
is_remote
=
false
;
#endif
#endif
...
@@ -145,11 +144,11 @@ int Open( vlc_object_t *p_this )
...
@@ -145,11 +144,11 @@ int Open( vlc_object_t *p_this )
if
(
!
strcasecmp
(
p_access
->
psz_access
,
"fd"
))
if
(
!
strcasecmp
(
p_access
->
psz_access
,
"fd"
))
{
{
char
*
end
;
char
*
end
;
int
oldfd
=
strtol
(
p
ath
,
&
end
,
10
);
int
oldfd
=
strtol
(
p
_access
->
psz_location
,
&
end
,
10
);
if
(
*
end
==
'\0'
)
if
(
*
end
==
'\0'
)
fd
=
vlc_dup
(
oldfd
);
fd
=
vlc_dup
(
oldfd
);
else
if
(
*
end
==
'/'
&&
end
>
p
ath
)
else
if
(
*
end
==
'/'
&&
end
>
p
_access
->
psz_location
)
{
{
char
*
name
=
decode_URI_duplicate
(
end
-
1
);
char
*
name
=
decode_URI_duplicate
(
end
-
1
);
if
(
name
!=
NULL
)
if
(
name
!=
NULL
)
...
@@ -162,6 +161,8 @@ int Open( vlc_object_t *p_this )
...
@@ -162,6 +161,8 @@ int Open( vlc_object_t *p_this )
}
}
else
else
{
{
const
char
*
path
=
p_access
->
psz_filepath
;
msg_Dbg
(
p_access
,
"opening file `%s'"
,
path
);
msg_Dbg
(
p_access
,
"opening file `%s'"
,
path
);
fd
=
vlc_open
(
path
,
O_RDONLY
|
O_NONBLOCK
);
fd
=
vlc_open
(
path
,
O_RDONLY
|
O_NONBLOCK
);
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
...
...
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