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
b981b0b3
Commit
b981b0b3
authored
May 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the file:// URI decode hack
parent
6d4bc50f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
src/input/input.c
src/input/input.c
+0
-42
No files found.
src/input/input.c
View file @
b981b0b3
...
@@ -2326,48 +2326,6 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2326,48 +2326,6 @@ static int InputSourceInit( input_thread_t *p_input,
/* Split uri */
/* Split uri */
input_SplitMRL
(
&
psz_access
,
&
psz_demux
,
&
psz_path
,
psz_dup
);
input_SplitMRL
(
&
psz_access
,
&
psz_demux
,
&
psz_path
,
psz_dup
);
/* FIXME: file:// handling plugins do not support URIs properly...
* So we pre-decode the URI to a path for them. Note that we do not do it
* for non-standard VLC-specific schemes. */
if
(
!
strcmp
(
psz_access
,
"file"
)
)
{
if
(
psz_path
[
0
]
!=
'/'
)
#ifndef WIN32
{
/* host specified -> only localhost is supported */
static
const
size_t
i_localhost
=
sizeof
(
"localhost"
)
-
1
;
if
(
strncmp
(
psz_path
,
"localhost/"
,
i_localhost
+
1
)
!=
0
)
{
msg_Err
(
p_input
,
"cannot open remote file `%s://%s'"
,
psz_access
,
psz_path
);
msg_Info
(
p_input
,
"Did you mean `%s:///%s'?"
,
psz_access
,
psz_path
);
goto
error
;
}
psz_path
+=
i_localhost
;
}
#else
{
/* XXX: very very ugly. Always true for valid URIs though. */
if
(
(
psz_path
-
psz_dup
)
>=
2
&&
psz_path
[
-
2
]
&&
psz_path
[
-
1
]
)
{
*
(
--
psz_path
)
=
'\\'
;
*
(
--
psz_path
)
=
'\\'
;
}
msg_Err
(
p_input
,
"REMOTE: %s"
,
psz_path
);
}
else
/* Strip leading slash in front of the drive letter */
psz_path
++
;
#endif
/* Then URI-decode the path. */
decode_URI
(
psz_path
);
#if (DIR_SEP_CHAR != '/')
/* Turn slashes into anti-slashes */
for
(
char
*
s
=
strchr
(
psz_path
,
'/'
);
s
;
s
=
strchr
(
s
+
1
,
'/'
)
)
*
s
=
DIR_SEP_CHAR
;
#endif
}
msg_Dbg
(
p_input
,
"`%s' gives access `%s' demux `%s' path `%s'"
,
msg_Dbg
(
p_input
,
"`%s' gives access `%s' demux `%s' path `%s'"
,
psz_mrl
,
psz_access
,
psz_demux
,
psz_path
);
psz_mrl
,
psz_access
,
psz_demux
,
psz_path
);
if
(
!
p_input
->
b_preparsing
)
if
(
!
p_input
->
b_preparsing
)
...
...
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