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
6b5014ad
Commit
6b5014ad
authored
Oct 19, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill duplicated function
parent
69ce7365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
40 deletions
+2
-40
src/input/input.c
src/input/input.c
+2
-40
No files found.
src/input/input.c
View file @
6b5014ad
...
...
@@ -39,6 +39,7 @@
#include "vlc_playlist.h"
#include "vlc_interface.h"
#include "vlc_interaction.h"
#include "vlc_url.h"
#include "charset.h"
...
...
@@ -69,7 +70,6 @@ static int UpdateMeta( input_thread_t * );
static
void
UpdateItemLength
(
input_thread_t
*
,
int64_t
i_length
);
static
void
DecodeUrl
(
char
*
);
static
void
MRLSections
(
input_thread_t
*
,
char
*
,
int
*
,
int
*
,
int
*
,
int
*
);
static
input_source_t
*
InputSourceNew
(
input_thread_t
*
);
...
...
@@ -2016,7 +2016,7 @@ static int InputSourceInit( input_thread_t *p_input,
/* Access failed, URL encoded ? */
if
(
in
->
p_access
==
NULL
&&
strchr
(
psz_path
,
'%'
)
)
{
DecodeUrl
(
psz_path
);
decode_URI
(
psz_path
);
msg_Dbg
(
p_input
,
"retrying with access `%s' demux `%s' path `%s'"
,
psz_access
,
psz_demux
,
psz_path
);
...
...
@@ -2299,44 +2299,6 @@ static void InputMetaUser( input_thread_t *p_input )
#undef GET_META
}
/*****************************************************************************
* DecodeUrl: decode a given encoded url
*****************************************************************************/
static
void
DecodeUrl
(
char
*
psz
)
{
char
*
dup
=
strdup
(
psz
);
char
*
p
=
dup
;
while
(
*
p
)
{
if
(
*
p
==
'%'
)
{
char
val
[
3
];
p
++
;
if
(
!*
p
)
{
break
;
}
val
[
0
]
=
*
p
++
;
val
[
1
]
=
*
p
++
;
val
[
2
]
=
'\0'
;
*
psz
++
=
strtol
(
val
,
NULL
,
16
);
}
else
if
(
*
p
==
'+'
)
{
*
psz
++
=
' '
;
p
++
;
}
else
{
*
psz
++
=
*
p
++
;
}
}
if
(
psz
)
*
psz
++
=
'\0'
;
if
(
dup
)
free
(
dup
);
}
/*****************************************************************************
* MRLSplit: parse the access, demux and url part of the
...
...
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