Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
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
Hide 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 )
input_item_t
*
p_input
;
lua_State
*
p_state
=
p_demux
->
p_sys
->
p_state
;
char
*
psz_filename
=
p_demux
->
p_sys
->
psz_filename
;
int
t
;
INIT_PLAYLIST_STUFF
;
...
...
@@ -462,9 +463,13 @@ static int Demux( demux_t *p_demux )
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
)
)
{
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