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
4dfbfbbb
Commit
4dfbfbbb
authored
Jul 26, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: deduplicate get_path()
parent
342acefa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
src/input/demux.c
src/input/demux.c
+1
-17
No files found.
src/input/demux.c
View file @
4dfbfbbb
...
...
@@ -25,6 +25,7 @@
# include "config.h"
#endif
#include "access.h"
#include "demux.h"
#include <libvlc.h>
#include <vlc_codec.h>
...
...
@@ -35,23 +36,6 @@
static
bool
SkipID3Tag
(
demux_t
*
);
static
bool
SkipAPETag
(
demux_t
*
p_demux
);
/* Decode URL (which has had its scheme stripped earlier) to a file path. */
/* XXX: evil code duplication from access.c */
static
char
*
get_path
(
const
char
*
location
)
{
char
*
url
,
*
path
;
/* Prepending "file://" is a bit hackish. But then again, we do not want
* to hard-code the list of schemes that use file paths in make_path().
*/
if
(
asprintf
(
&
url
,
"file://%s"
,
location
)
==
-
1
)
return
NULL
;
path
=
make_path
(
url
);
free
(
url
);
return
path
;
}
#undef demux_New
/*****************************************************************************
* demux_New:
...
...
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