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
6f5ee987
Commit
6f5ee987
authored
Jun 27, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't segfault when looking for art with the lua scripts. Thanks to ILEoo for spoting the bug.
parent
9ad990ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/misc/lua/meta.c
modules/misc/lua/meta.c
+3
-1
No files found.
modules/misc/lua/meta.c
View file @
6f5ee987
...
@@ -58,6 +58,8 @@ static lua_State *vlclua_meta_init( vlc_object_t *p_this,
...
@@ -58,6 +58,8 @@ static lua_State *vlclua_meta_init( vlc_object_t *p_this,
/*****************************************************************************
/*****************************************************************************
* Init lua
* Init lua
*****************************************************************************/
*****************************************************************************/
static
luaL_Reg
p_reg
[]
=
{
{
NULL
,
NULL
}
};
static
lua_State
*
vlclua_meta_init
(
vlc_object_t
*
p_this
,
input_item_t
*
p_item
)
static
lua_State
*
vlclua_meta_init
(
vlc_object_t
*
p_this
,
input_item_t
*
p_item
)
{
{
lua_State
*
L
=
luaL_newstate
();
lua_State
*
L
=
luaL_newstate
();
...
@@ -71,7 +73,7 @@ static lua_State * vlclua_meta_init( vlc_object_t *p_this, input_item_t * p_item
...
@@ -71,7 +73,7 @@ static lua_State * vlclua_meta_init( vlc_object_t *p_this, input_item_t * p_item
/* Load Lua libraries */
/* Load Lua libraries */
luaL_openlibs
(
L
);
/* XXX: Don't open all the libs? */
luaL_openlibs
(
L
);
/* XXX: Don't open all the libs? */
luaL_register
(
L
,
"vlc"
,
NULL
/* FIXME ? */
);
luaL_register
(
L
,
"vlc"
,
p_reg
);
luaopen_msg
(
L
);
luaopen_msg
(
L
);
luaopen_stream
(
L
);
luaopen_stream
(
L
);
...
...
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