Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5655e629
Commit
5655e629
authored
Oct 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert paths from command line arguments to URIs
parent
3455d5b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/libvlc.c
src/libvlc.c
+8
-4
No files found.
src/libvlc.c
View file @
5655e629
...
@@ -87,6 +87,7 @@
...
@@ -87,6 +87,7 @@
#include <vlc_charset.h>
#include <vlc_charset.h>
#include <vlc_cpu.h>
#include <vlc_cpu.h>
#include <vlc_url.h>
#include "libvlc.h"
#include "libvlc.h"
...
@@ -1305,13 +1306,16 @@ static int GetFilenames( libvlc_int_t *p_vlc, int i_argc, const char *ppsz_argv[
...
@@ -1305,13 +1306,16 @@ static int GetFilenames( libvlc_int_t *p_vlc, int i_argc, const char *ppsz_argv[
/* TODO: write an internal function of this one, to avoid
/* TODO: write an internal function of this one, to avoid
* unnecessary lookups. */
* unnecessary lookups. */
char
*
mrl
=
make_URI
(
ppsz_argv
[
i_opt
]
);
if
(
!
mrl
)
continue
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_vlc
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_vlc
);
playlist_AddExt
(
p_playlist
,
ppsz_argv
[
i_opt
],
NULL
,
PLAYLIST_INSERT
,
playlist_AddExt
(
p_playlist
,
mrl
,
NULL
,
PLAYLIST_INSERT
,
0
,
-
1
,
0
,
-
1
,
i_options
,
(
i_options
?
&
ppsz_argv
[
i_opt
+
1
]
:
NULL
),
i_options
,
(
i_options
?
&
ppsz_argv
[
i_opt
+
1
]
:
NULL
),
VLC_INPUT_OPTION_TRUSTED
,
VLC_INPUT_OPTION_TRUSTED
,
true
,
pl_Unlocked
);
true
,
pl_Unlocked
);
pl_Release
(
p_vlc
);
pl_Release
(
p_vlc
);
free
(
mrl
);
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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