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
7521a562
Commit
7521a562
authored
Jun 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist_Import: use make_URI
parent
d131e9ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/playlist/loadsave.c
src/playlist/loadsave.c
+3
-2
No files found.
src/playlist/loadsave.c
View file @
7521a562
...
...
@@ -30,6 +30,7 @@
#include "playlist_internal.h"
#include "config/configuration.h"
#include <vlc_charset.h>
#include <vlc_url.h>
#include <sys/types.h>
#include <sys/stat.h>
...
...
@@ -82,10 +83,10 @@ int playlist_Export( playlist_t * p_playlist, const char *psz_filename ,
int
playlist_Import
(
playlist_t
*
p_playlist
,
const
char
*
psz_file
)
{
input_item_t
*
p_input
;
char
*
psz_uri
;
const
char
*
const
psz_option
=
"meta-file"
;
char
*
psz_uri
=
make_URI
(
psz_file
);
if
(
asprintf
(
&
psz_uri
,
"file/://%s"
,
psz_file
)
<
0
)
if
(
psz_uri
==
NULL
)
return
VLC_EGENERIC
;
p_input
=
input_item_NewExt
(
p_playlist
,
psz_uri
,
psz_file
,
...
...
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