Commit c61fe43a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lua: remove unused argument

parent 37bda6a0
...@@ -161,7 +161,7 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename, ...@@ -161,7 +161,7 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
lua_pop( L, 1 ); lua_pop( L, 1 );
/* Setup the module search path */ /* Setup the module search path */
if( vlclua_add_modules_path( p_demux, L, psz_filename ) ) if( vlclua_add_modules_path( L, psz_filename ) )
{ {
msg_Warn( p_demux, "Error while setting the module search path for %s", msg_Warn( p_demux, "Error while setting the module search path for %s",
psz_filename ); psz_filename );
......
...@@ -852,7 +852,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr, ...@@ -852,7 +852,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr,
} }
else else
{ {
if( vlclua_add_modules_path( p_mgr, L, p_ext->psz_name ) ) if( vlclua_add_modules_path( L, p_ext->psz_name ) )
{ {
msg_Warn( p_mgr, "Error while setting the module " msg_Warn( p_mgr, "Error while setting the module "
"search path for %s", p_ext->psz_name ); "search path for %s", p_ext->psz_name );
......
...@@ -274,7 +274,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name ) ...@@ -274,7 +274,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
lua_pop( L, 1 ); lua_pop( L, 1 );
/* Setup the module search path */ /* Setup the module search path */
if( vlclua_add_modules_path( p_intf, L, p_sys->psz_filename ) ) if( vlclua_add_modules_path( L, p_sys->psz_filename ) )
{ {
msg_Warn( p_intf, "Error while setting the module search path for %s", msg_Warn( p_intf, "Error while setting the module search path for %s",
p_sys->psz_filename ); p_sys->psz_filename );
......
...@@ -74,7 +74,7 @@ static lua_State * init( vlc_object_t *p_this, input_item_t * p_item, const char ...@@ -74,7 +74,7 @@ static lua_State * init( vlc_object_t *p_this, input_item_t * p_item, const char
luaopen_xml( L ); luaopen_xml( L );
luaopen_input_item( L, p_item ); luaopen_input_item( L, p_item );
if( vlclua_add_modules_path( p_this, L, psz_filename ) ) if( vlclua_add_modules_path( L, psz_filename ) )
{ {
msg_Warn( p_this, "Error while setting the module search path for %s", msg_Warn( p_this, "Error while setting the module search path for %s",
psz_filename ); psz_filename );
......
...@@ -120,7 +120,7 @@ int Open_LuaSD( vlc_object_t *p_this ) ...@@ -120,7 +120,7 @@ int Open_LuaSD( vlc_object_t *p_this )
luaopen_xml( L ); luaopen_xml( L );
lua_pop( L, 1 ); lua_pop( L, 1 );
if( vlclua_add_modules_path( p_sd, L, p_sys->psz_filename ) ) if( vlclua_add_modules_path( L, p_sys->psz_filename ) )
{ {
msg_Warn( p_sd, "Error while setting the module search path for %s", msg_Warn( p_sd, "Error while setting the module search path for %s",
p_sys->psz_filename ); p_sys->psz_filename );
......
...@@ -637,7 +637,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj ) ...@@ -637,7 +637,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
goto error; goto error;
} }
luaL_openlibs( L ); luaL_openlibs( L );
if( vlclua_add_modules_path( probe, L, psz_filename ) ) if( vlclua_add_modules_path( L, psz_filename ) )
{ {
msg_Err( probe, "Error while setting the module search path for %s", msg_Err( probe, "Error while setting the module search path for %s",
psz_filename ); psz_filename );
...@@ -736,8 +736,7 @@ static int vlclua_add_modules_path_inner( lua_State *L, const char *psz_path ) ...@@ -736,8 +736,7 @@ static int vlclua_add_modules_path_inner( lua_State *L, const char *psz_path )
return count; return count;
} }
#undef vlclua_add_modules_path int vlclua_add_modules_path( lua_State *L, const char *psz_filename )
int vlclua_add_modules_path( vlc_object_t *obj, lua_State *L, const char *psz_filename )
{ {
/* Setup the module search path: /* Setup the module search path:
* * "The script's directory"/modules * * "The script's directory"/modules
......
...@@ -152,8 +152,7 @@ int vlclua_playlist_add_internal( vlc_object_t *, lua_State *, playlist_t *, ...@@ -152,8 +152,7 @@ int vlclua_playlist_add_internal( vlc_object_t *, lua_State *, playlist_t *,
input_item_t *, bool ); input_item_t *, bool );
#define vlclua_playlist_add_internal( a, b, c, d, e ) vlclua_playlist_add_internal( VLC_OBJECT( a ), b, c, d, e ) #define vlclua_playlist_add_internal( a, b, c, d, e ) vlclua_playlist_add_internal( VLC_OBJECT( a ), b, c, d, e )
int vlclua_add_modules_path( vlc_object_t *, lua_State *, const char *psz_filename ); int vlclua_add_modules_path( lua_State *, const char *psz_filename );
#define vlclua_add_modules_path( a, b, c ) vlclua_add_modules_path( VLC_OBJECT( a ), b, c )
/** /**
* Per-interface private state * Per-interface private state
......
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