Commit 6f5ee987 authored by Antoine Cellerier's avatar Antoine Cellerier

Don't segfault when looking for art with the lua scripts. Thanks to ILEoo for spoting the bug.

parent 9ad990ac
......@@ -58,6 +58,8 @@ static lua_State *vlclua_meta_init( vlc_object_t *p_this,
/*****************************************************************************
* 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 )
{
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
/* Load Lua libraries */
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_stream( L );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment