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
6323eda2
Commit
6323eda2
authored
May 19, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* luaplaylist.c: make sure that the Lua stack is big enough before reading the playlist table.
parent
a8a66a68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/demux/playlist/luaplaylist.c
modules/demux/playlist/luaplaylist.c
+7
-2
No files found.
modules/demux/playlist/luaplaylist.c
View file @
6323eda2
...
@@ -438,6 +438,7 @@ static int Demux( demux_t *p_demux )
...
@@ -438,6 +438,7 @@ static int Demux( demux_t *p_demux )
input_item_t
*
p_input
;
input_item_t
*
p_input
;
lua_State
*
p_state
=
p_demux
->
p_sys
->
p_state
;
lua_State
*
p_state
=
p_demux
->
p_sys
->
p_state
;
char
*
psz_filename
=
p_demux
->
p_sys
->
psz_filename
;
char
*
psz_filename
=
p_demux
->
p_sys
->
psz_filename
;
int
t
;
INIT_PLAYLIST_STUFF
;
INIT_PLAYLIST_STUFF
;
...
@@ -462,9 +463,13 @@ static int Demux( demux_t *p_demux )
...
@@ -462,9 +463,13 @@ static int Demux( demux_t *p_demux )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
lua_gettop
(
p_state
)
)
/* Check that the Lua stack is big enough and grow it if needed.
* Should be ok since LUA_MINSTACK is 20 but we never know. */
lua_checkstack
(
p_state
,
7
);
if
(
(
t
=
lua_gettop
(
p_state
)
)
)
{
{
int
t
=
lua_gettop
(
p_state
);
if
(
lua_istable
(
p_state
,
t
)
)
if
(
lua_istable
(
p_state
,
t
)
)
{
{
lua_pushnil
(
p_state
);
lua_pushnil
(
p_state
);
...
...
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