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
d0031ad2
Commit
d0031ad2
authored
Sep 25, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua_http: fix name parsing on encoded uri
parent
06108030
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/lua/vlc.c
modules/lua/vlc.c
+11
-1
No files found.
modules/lua/vlc.c
View file @
d0031ad2
...
...
@@ -500,6 +500,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
if
(
lua_isstring
(
L
,
-
1
)
)
{
const
char
*
psz_path
=
NULL
;
char
*
psz_u8path
=
NULL
;
const
char
*
psz_name
=
NULL
;
char
**
ppsz_options
=
NULL
;
int
i_options
=
0
;
...
...
@@ -520,7 +521,15 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
{
if
(
!
lua_isnil
(
L
,
-
1
)
)
msg_Warn
(
p_this
,
"Playlist item name should be a string."
);
psz_name
=
psz_path
;
psz_u8path
=
make_path
(
psz_path
);
if
(
psz_u8path
)
{
psz_name
=
strrchr
(
psz_u8path
,
'/'
);
if
(
psz_name
!=
NULL
)
psz_name
++
;
}
if
(
!
psz_name
)
psz_name
=
psz_path
;
}
/* Read duration */
...
...
@@ -574,6 +583,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
while
(
i_options
>
0
)
free
(
ppsz_options
[
--
i_options
]
);
free
(
ppsz_options
);
free
(
psz_u8path
);
}
else
{
...
...
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