lua: remove unused argument

This commit is contained in:
Rémi Denis-Courmont 2013-03-24 18:30:11 +02:00
parent 37bda6a0da
commit c61fe43abf
7 changed files with 8 additions and 10 deletions

View File

@ -161,7 +161,7 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
lua_pop( L, 1 );
/* 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",
psz_filename );

View File

@ -852,7 +852,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr,
}
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 "
"search path for %s", p_ext->psz_name );

View File

@ -274,7 +274,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
lua_pop( L, 1 );
/* 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",
p_sys->psz_filename );

View File

@ -74,7 +74,7 @@ static lua_State * init( vlc_object_t *p_this, input_item_t * p_item, const char
luaopen_xml( L );
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",
psz_filename );

View File

@ -120,7 +120,7 @@ int Open_LuaSD( vlc_object_t *p_this )
luaopen_xml( L );
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",
p_sys->psz_filename );

View File

@ -637,7 +637,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
goto error;
}
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",
psz_filename );
@ -736,8 +736,7 @@ static int vlclua_add_modules_path_inner( lua_State *L, const char *psz_path )
return count;
}
#undef vlclua_add_modules_path
int vlclua_add_modules_path( vlc_object_t *obj, lua_State *L, const char *psz_filename )
int vlclua_add_modules_path( lua_State *L, const char *psz_filename )
{
/* Setup the module search path:
* * "The script's directory"/modules

View File

@ -152,8 +152,7 @@ int vlclua_playlist_add_internal( vlc_object_t *, lua_State *, playlist_t *,
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 )
int vlclua_add_modules_path( vlc_object_t *, lua_State *, const char *psz_filename );
#define vlclua_add_modules_path( a, b, c ) vlclua_add_modules_path( VLC_OBJECT( a ), b, c )
int vlclua_add_modules_path( lua_State *, const char *psz_filename );
/**
* Per-interface private state